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

Unified Diff: modules/roundup/templates/initial_data.py.erb

Issue 4815057535893504: Configured Roundup tracker. (Closed)
Patch Set: Created Feb. 14, 2014, 9:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/roundup/templates/initial_data.py.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/roundup/templates/initial_data.py.erb
@@ -0,0 +1,56 @@
+#
+# TRACKER INITIAL PRIORITY AND STATUS VALUES
+#
+pri = db.getclass('priority')
+pri.create(name=''"critical", order="1")
+pri.create(name=''"normal", order="2")
+pri.create(name=''"low", order="3")
+
+stat = db.getclass('status')
+stat.create(name=''"new", order="1")
+stat.create(name=''"accepted", order="2")
+stat.create(name=''"in-progress", order="3")
+stat.create(name=''"dublicate", order="6")
+stat.create(name=''"invalid", order="7")
+stat.create(name=''"rejected", order="8")
+stat.create(name=''"done", order="9")
+stat.create(name=''"verified", order="10")
+
+# 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')
+user.create(username="test", password=adminpw,
+ address="adblocktests@gmail.com", roles='User')
+user.create(username="team", password=adminpw,
+ address="test@hill-net.com", roles='Team')
+user.create(username="user2", password=adminpw,
+ address="philip@hill-net.com", roles='User')
+
+# add initial keywords
+keyword = db.getclass('keyword')
+keyword.create(name="longterm")
+keyword.create(name="goodfirstbug")
+
+# add any additional database creation steps here - but only if you
+# haven't initialised the database with the admin "initialise" command
+
+type = db.getclass('type')
+type.create(name="feature")
+type.create(name="bug")
+
+module = db.getclass('module')
+module.create(name="ui")
+module.create(name="platform")
+module.create(name="buildtools")
+module.create(name="adblockplusfirefox")
+module.create(name="adblockplusandroid")
+module.create(name="adblockplusie")
+module.create(name="libadblockplus")
+module.create(name="infrastructure")
+module.create(name="other")
+
+
+# vim: set filetype=python sts=4 sw=4 et si
+#SHA: f52a98b31599aa459a82a7852175660cf9cdcd6b
« 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