Mercurial > p > roundup > code
comparison templates/classic/initial_data.py @ 2633:a9e1fff1e793
I thought I committed this last night. Ho hum.
- This implements most of the rest of the new tracker config layout:
- dbinit.py split between schema.py and initial_data.py
- interfaces.py gone
- tracker and detectors __init__.py gone
- Added some missing functionality to backends: db_exists test and db_nuke.
- Implemented configuration file options in postgresql backend.
- Cleaned up tracker initialisation a lot.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 27 Jul 2004 00:57:19 +0000 |
| parents | |
| children | 7308c3c5a943 |
comparison
equal
deleted
inserted
replaced
| 2632:9c55f2bc5961 | 2633:a9e1fff1e793 |
|---|---|
| 1 # | |
| 2 # TRACKER INITIAL PRIORITY AND STATUS VALUES | |
| 3 # | |
| 4 pri = db.getclass('priority') | |
| 5 pri.create(name="critical", order="1") | |
| 6 pri.create(name="urgent", order="2") | |
| 7 pri.create(name="bug", order="3") | |
| 8 pri.create(name="feature", order="4") | |
| 9 pri.create(name="wish", order="5") | |
| 10 | |
| 11 stat = db.getclass('status') | |
| 12 stat.create(name="unread", order="1") | |
| 13 stat.create(name="deferred", order="2") | |
| 14 stat.create(name="chatting", order="3") | |
| 15 stat.create(name="need-eg", order="4") | |
| 16 stat.create(name="in-progress", order="5") | |
| 17 stat.create(name="testing", order="6") | |
| 18 stat.create(name="done-cbb", order="7") | |
| 19 stat.create(name="resolved", order="8") | |
| 20 | |
| 21 # create the two default users | |
| 22 user = db.getclass('user') | |
| 23 user.create(username="admin", password=adminpw, | |
| 24 address=admin_email, roles='Admin') | |
| 25 user.create(username="anonymous", roles='Anonymous') | |
| 26 | |
| 27 # add any additional database create steps here - but only if you | |
| 28 # haven't initialised the database with the admin "initialise" command | |
| 29 | |
| 30 | |
| 31 # vim: set filetype=python sts=4 sw=4 et si | |
| 32 #SHA: b1da2e72a7fe9f26086f243eb744135b085101d9 |
