Closed Bug 499358 Opened 15 years ago Closed 15 years ago

reading a README is too hard, clouserw wants an automatic settings.py

Categories

(addons.mozilla.org Graveyard :: Maintenance Scripts, defect, P5)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jbalogh, Assigned: jbalogh)

Details

Attachments

(2 files)

Particularly, one that reads the db connection parameters from config.php and passes them along to schematic.  He asked for a php interpreter, I give him some regex.
Attachment #384140 - Flags: review?(clouserw)
When you are done with this, you should write a PHP interpreter in Python. It's like PyPy [1], except for that it's not.

[1] http://codespeak.net/pypy/dist/pypy/doc/
I shall call it "sadness".
Tried to review this but schematic.py won't run for me:

Traceback (most recent call last):
  File "bin/schematic/schematic.py", line 83, in ?
    @exception
  File "bin/schematic/schematic.py", line 80, in exception
    return type(f.__name__, (SchematicError,), {'__init__': __init__})
TypeError: a new-style class can't have only classic bases
Priority: -- → P5
Fie on your python 2.4!
Committed a py24 fix for schematic in r28230.
Comment on attachment 384140 [details] [diff] [review]
figure out schematic settings automatically

FWIW, this works for me.
Attachment #384140 - Flags: review?(clouserw) → review+
Attached patch ignore commentsSplinter Review
Wenzzeeellll!!!!

Yeah, this works for me too.  It didn't at first because I have some stuff commented out in my file to make switching db's easy.  Patch attached to ignore comments.
Attachment #384504 - Flags: review?(jbalogh)
(In reply to comment #7)
> Wenzzeeellll!!!!

hope this isn't the sound of clouserw wanting to kill me ;)
(In reply to comment #8)
> (In reply to comment #7)
> > Wenzzeeellll!!!!
> 
> hope this isn't the sound of clouserw wanting to kill me ;)

It was my best captain kirk voice.
Added in r28284 with clouser's fix.

QA: this is a dev tool, so you should probably persuade a developer to verify.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Attachment #384504 - Flags: review?(jbalogh) → review+
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: