annotate templates/classic/initial_data.py @ 2806:845e87d5e3ba

translator objects now have the following search path: - selected locale messages in the tracker locale dir - selected locale messages in the system locale dir - english messages in the tracker locale dir - english messages in the system locale dir automatically compile .mo files if needed (found .po file and .mo is missing or .po mtime is greater that .mo mtime) removed support for python < 2.0. gettext module is now required. get_translation: removed 'domain' argument, added 'tracker_home' argument
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 23 Oct 2004 14:03:34 +0000
parents a9e1fff1e793
children 7308c3c5a943
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2633
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 #
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2 # TRACKER INITIAL PRIORITY AND STATUS VALUES
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
3 #
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
4 pri = db.getclass('priority')
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
5 pri.create(name="critical", order="1")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
6 pri.create(name="urgent", order="2")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
7 pri.create(name="bug", order="3")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
8 pri.create(name="feature", order="4")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
9 pri.create(name="wish", order="5")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
10
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
11 stat = db.getclass('status')
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
12 stat.create(name="unread", order="1")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
13 stat.create(name="deferred", order="2")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
14 stat.create(name="chatting", order="3")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
15 stat.create(name="need-eg", order="4")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
16 stat.create(name="in-progress", order="5")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
17 stat.create(name="testing", order="6")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
18 stat.create(name="done-cbb", order="7")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
19 stat.create(name="resolved", order="8")
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
20
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
21 # create the two default users
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
22 user = db.getclass('user')
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
23 user.create(username="admin", password=adminpw,
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
24 address=admin_email, roles='Admin')
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
25 user.create(username="anonymous", roles='Anonymous')
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
26
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
27 # add any additional database create steps here - but only if you
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
28 # haven't initialised the database with the admin "initialise" command
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
29
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
31 # vim: set filetype=python sts=4 sw=4 et si
a9e1fff1e793 I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 #SHA: b1da2e72a7fe9f26086f243eb744135b085101d9

Roundup Issue Tracker: http://roundup-tracker.org/