slitaz-forge view bugs/templates/slitaz/initial_data.py @ rev 195
doc: let have a little bigger orange block
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 20 23:43:43 2012 +0100 (2012-03-20) |
parents | |
children |
line source
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=''"standard", order="2")
7 pri.create(name=''"feature", order="3")
8 pri.create(name=''"task", order="4")
10 stat = db.getclass('status')
11 stat.create(name=''"unread", order="1")
12 stat.create(name=''"deferred", order="2")
13 stat.create(name=''"chatting", order="3")
14 stat.create(name=''"in-progress", order="4")
15 stat.create(name=''"feedback", order="5")
16 stat.create(name=''"resolved", order="6")
18 # create the two default users
19 user = db.getclass('user')
20 user.create(username="pankso", password=adminpw,
21 address=admin_email, roles='Admin')
22 user.create(username="anonymous", roles='Anonymous')
24 # add any additional database creation steps here - but only if you
25 # haven't initialised the database with the admin "initialise" command
28 # vim: set filetype=python sts=4 sw=4 et si
29 #SHA: 54e44ed654b0ae4a076ed2d948bbbaaa79590918