Commits

Anonymous committed 9ad1f87 Draft

Add initial data according to #184.

Comments (0)

Files changed (1)

 #
 
 issue_type = db.getclass('issue_type')
-issue_type.create(name='crash', order='1')
-issue_type.create(name='compile error', order='2')
-issue_type.create(name='resource usage', order='3')
-issue_type.create(name='security', order='4')
-issue_type.create(name='behavior', order='5')
-issue_type.create(name='rfe', order='6')
+issue_type.create(name='behaviour', order='1')
+issue_type.create(name='security', order='2')
+issue_type.create(name='rfe', order='3')
+issue_type.create(name='crash', order='4')
 
 component = db.getclass('component')
-component.create(name="Build", order="1")
-component.create(name="Demos and Tools", order="2")
-component.create(name="Distutils", order="3")
-component.create(name="Documentation", order="4")
-component.create(name="Extension Modules", order="5")
-component.create(name="IDLE", order="6")
-component.create(name="Installation", order="7")
-component.create(name="Interpreter Core", order="8")
-component.create(name="Library (Lib)", order="9")
-component.create(name="Macintosh", order="10")
-component.create(name="Regular Expressions", order="11")
-component.create(name="Tests", order="12")
-component.create(name="Tkinter", order="13")
-component.create(name="Unicode", order="14")
-component.create(name="Windows", order="15")
-component.create(name="XML", order="16")
+component.create(name="Any", order="1")
+component.create(name="Core", order="2")
+component.create(name="Documentation", order="3")
+component.create(name="Installer", order="4")
+component.create(name="Jythonc compiler", order="5")
+component.create(name="Library", order="6")
+component.create(name="website", order="7")
+component.create(name="zxjdbc", order="8")
 
 version = db.getclass('version')
-version.create(name='Python 2.6', order='1')
-version.create(name='Python 2.5', order='2')
-version.create(name='Python 2.4', order='3')
-version.create(name='Python 2.3', order='4')
-version.create(name='Python 2.2.3', order='5')
-version.create(name='Python 2.2.2', order='6')
-version.create(name='Python 2.2.1', order='7')
-version.create(name='Python 2.2', order='8')
-version.create(name='Python 2.1.2', order='9')
-version.create(name='Python 2.1.1', order='10')
-version.create(name='3rd party', order='11')
-
+version.create(name='Deferred', order='1')
+version.create(name='Fixed in 2.1a3', order='2')
+version.create(name='Fixed in 2.1b1', order='3')
+version.create(name='Fixed in 2.1b2', order='4')
+version.create(name='Fixed in 2.1final', order='5')
+version.create(name='Fixed in 2.2a0', order='6')
+version.create(name='targeted for 2.2.1rc1', order='7')
+version.create(name='targeted for 2.2beta1', order='8')
+version.create(name='targeted for 2.2beta2', order='9')
+version.create(name='targeted for 2.2rc1', order='10')
+version.create(name='targeted for 2.2rc2', order='11')
+version.create(name='targeted for 2.2rc3', order='12')
+version.create(name='test failure causes', order='13')
 
 severity = db.getclass('severity')
 severity.create(name='critical', order='1')
 resolution.create(name='works for me', order='11')
 
 keyword = db.getclass("keyword")
-keyword.create(name="py3k", description="Python 3000 bugs")
-keyword.create(name="patch", description="Contains patch")
+#keyword.create(name="patch", description="Contains patch")
 
 #
 # 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')
+
+# and some test users
+user.create(username="user", password="user", roles="User")
+user.create(username="developer", password="developer", roles="User,Developer")