Mercurial > p > roundup > code
comparison roundup/templates/extended/dbinit.py @ 144:b0c4ac63c6ed
Big changes:
. split off the support priority into its own class
. added "new support, new user" to the page head
. fixed the display options for the heading links
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 30 Jul 2001 01:26:59 +0000 |
| parents | 0791d13baea7 |
| children | 1536be43d2fa |
comparison
equal
deleted
inserted
replaced
| 143:fd20d16ae81e | 144:b0c4ac63c6ed |
|---|---|
| 1 # $Id: dbinit.py,v 1.7 2001-07-29 07:01:39 richard Exp $ | 1 # $Id: dbinit.py,v 1.8 2001-07-30 01:26:59 richard Exp $ |
| 2 | 2 |
| 3 import os | 3 import os |
| 4 | 4 |
| 5 import instance_config | 5 import instance_config |
| 6 from roundup import roundupdb | 6 from roundup import roundupdb |
| 76 | 76 |
| 77 timelog = Class(db, "timelog", | 77 timelog = Class(db, "timelog", |
| 78 date=Date(), time=String(), | 78 date=Date(), time=String(), |
| 79 performedby=Link("user"), description=String()) | 79 performedby=Link("user"), description=String()) |
| 80 | 80 |
| 81 support = IssueClass(db, "support", | |
| 82 assignedto=Link("user"), status=Link("status"), | |
| 83 rate=Link("rate"), source=Link("source"), | |
| 84 product=Link("product"), platform=Multilink("platform"), | |
| 85 version=String(), timelog=Multilink("timelog"), | |
| 86 customername=String()) | |
| 87 | |
| 81 issue = IssueClass(db, "issue", | 88 issue = IssueClass(db, "issue", |
| 82 assignedto=Link("user"), priority=Link("priority"), | 89 assignedto=Link("user"), priority=Link("priority"), |
| 83 status=Link("status"), rate=Link("rate"), | 90 status=Link("status"), product=Link("product"), |
| 84 source=Link("source"), product=Link("product"), | |
| 85 platform=Multilink("platform"), version=String(), | 91 platform=Multilink("platform"), version=String(), |
| 86 timelog=Multilink("timelog"), customername=String()) | 92 supportcall=Multilink("support")) |
| 87 issue.setkey('title') | |
| 88 | 93 |
| 89 import detectors | 94 import detectors |
| 90 detectors.init(db) | 95 detectors.init(db) |
| 91 | 96 |
| 92 return db | 97 return db |
| 107 pri = db.getclass('priority') | 112 pri = db.getclass('priority') |
| 108 pri.create(name="fatal-bug", order="1") | 113 pri.create(name="fatal-bug", order="1") |
| 109 pri.create(name="bug", order="2") | 114 pri.create(name="bug", order="2") |
| 110 pri.create(name="usability", order="3") | 115 pri.create(name="usability", order="3") |
| 111 pri.create(name="feature", order="4") | 116 pri.create(name="feature", order="4") |
| 112 pri.create(name="support", order="5") | |
| 113 | 117 |
| 114 stat = db.getclass('status') | 118 stat = db.getclass('status') |
| 115 stat.create(name="unread", order="1") | 119 stat.create(name="unread", order="1") |
| 116 stat.create(name="deferred", order="2") | 120 stat.create(name="deferred", order="2") |
| 117 stat.create(name="chatting", order="3") | 121 stat.create(name="chatting", order="3") |
| 149 | 153 |
| 150 db.close() | 154 db.close() |
| 151 | 155 |
| 152 # | 156 # |
| 153 # $Log: not supported by cvs2svn $ | 157 # $Log: not supported by cvs2svn $ |
| 158 # Revision 1.7 2001/07/29 07:01:39 richard | |
| 159 # Added vim command to all source so that we don't get no steenkin' tabs :) | |
| 160 # | |
| 154 # Revision 1.6 2001/07/25 01:23:07 richard | 161 # Revision 1.6 2001/07/25 01:23:07 richard |
| 155 # Added the Roundup spec to the new documentation directory. | 162 # Added the Roundup spec to the new documentation directory. |
| 156 # | 163 # |
| 157 # Revision 1.5 2001/07/23 23:20:35 richard | 164 # Revision 1.5 2001/07/23 23:20:35 richard |
| 158 # forgot to remove the interfaces from the dbinit module ;) | 165 # forgot to remove the interfaces from the dbinit module ;) |
