Mercurial > p > roundup > code
view templates/minimal/initial_data.py @ 3874:4c8d853017f2
strip rolename & fix rolename unittest
- strip the rolename earlier in processing so we handle pure-whitespace
- change modeline per alex's suggestion
- add unittest for all-white space roles
- somehow I managed to check in a broken unittest previously. add in
the user lookup so it works.
| author | Justus Pendleton <jpend@users.sourceforge.net> |
|---|---|
| date | Fri, 31 Aug 2007 17:45:17 +0000 |
| parents | 7308c3c5a943 |
| children |
line wrap: on
line source
# # TRACKER DATABASE INITIALIZATION # # 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 creation steps here - but only if you # haven't initialised the database with the admin "initialise" command # vim: set et sts=4 sw=4 :
