Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/roundup/templates/initial_data.py.erb

Issue 6033763767156736: Concept for Roundup as issue tracker. (Closed)
Patch Set: Created Feb. 25, 2014, 8:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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=''"normal", order="2")
7 pri.create(name=''"low", order="3")
8
9 stat = db.getclass('status')
10 stat.create(name=''"new", order="1")
11 stat.create(name=''"accepted", order="2")
12 stat.create(name=''"in-progress", order="3")
13 stat.create(name=''"dublicate", order="6")
14 stat.create(name=''"invalid", order="7")
15 stat.create(name=''"rejected", order="8")
16 stat.create(name=''"done", order="9")
17 stat.create(name=''"verified", order="10")
18
19 # create the two default users
20 user = db.getclass('user')
21 user.create(username="admin", password=adminpw,
22 address=admin_email, roles='Admin')
23 user.create(username="anonymous", roles='Anonymous')
24 user.create(username="test", password=adminpw,
25 address="adblocktests@gmail.com", roles='User')
26 user.create(username="team", password=adminpw,
27 address="test@hill-net.com", roles='Team')
28 user.create(username="user2", password=adminpw,
29 address="philip@hill-net.com", roles='User')
30
31 # add initial keywords
32 keyword = db.getclass('keyword')
33 keyword.create(name="longterm")
34 keyword.create(name="goodfirstbug")
35
36 # add any additional database creation steps here - but only if you
37 # haven't initialised the database with the admin "initialise" command
38
39 type = db.getclass('type')
40 type.create(name="feature")
41 type.create(name="bug")
42
43 module = db.getclass('module')
44 module.create(name="ui")
45 module.create(name="platform")
46 module.create(name="buildtools")
47 module.create(name="adblockplusfirefox")
48 module.create(name="adblockplusandroid")
49 module.create(name="adblockplusie")
50 module.create(name="libadblockplus")
51 module.create(name="infrastructure")
52 module.create(name="other")
53
54
55 # vim: set filetype=python sts=4 sw=4 et si
56 #SHA: f52a98b31599aa459a82a7852175660cf9cdcd6b
OLDNEW
« no previous file with comments | « modules/roundup/templates/config.ini.erb ('k') | modules/roundup/templates/issue.index.html.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld