Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/classic/initial_data.py Tue Jul 27 00:57:19 2004 +0000 @@ -0,0 +1,32 @@ +# +# TRACKER INITIAL PRIORITY AND STATUS VALUES +# +pri = db.getclass('priority') +pri.create(name="critical", order="1") +pri.create(name="urgent", order="2") +pri.create(name="bug", order="3") +pri.create(name="feature", order="4") +pri.create(name="wish", order="5") + +stat = db.getclass('status') +stat.create(name="unread", order="1") +stat.create(name="deferred", order="2") +stat.create(name="chatting", order="3") +stat.create(name="need-eg", order="4") +stat.create(name="in-progress", order="5") +stat.create(name="testing", order="6") +stat.create(name="done-cbb", order="7") +stat.create(name="resolved", order="8") + +# create the two default users +user = db.getclass('user') +user.create(username="admin", password=adminpw, + address=admin_email, roles='Admin') +user.create(username="anonymous", roles='Anonymous') + +# add any additional database create steps here - but only if you +# haven't initialised the database with the admin "initialise" command + + +# vim: set filetype=python sts=4 sw=4 et si +#SHA: b1da2e72a7fe9f26086f243eb744135b085101d9
