Mercurial > p > roundup > code
comparison roundup/templates/classic/dbinit.py @ 619:bb52c1419b4c
Removed the key property restriction on title of the classic issue class.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 16 Feb 2002 08:06:14 +0000 |
| parents | edd210915e64 |
| children | 2e70123bbf5a |
comparison
equal
deleted
inserted
replaced
| 618:9431715612ac | 619:bb52c1419b4c |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: dbinit.py,v 1.15 2002-02-15 07:08:44 richard Exp $ | 18 # $Id: dbinit.py,v 1.16 2002-02-16 08:06:14 richard Exp $ |
| 19 | 19 |
| 20 import os | 20 import os |
| 21 | 21 |
| 22 import instance_config | 22 import instance_config |
| 23 from roundup import roundupdb | 23 from roundup import roundupdb |
| 77 name=String(), type=String()) | 77 name=String(), type=String()) |
| 78 | 78 |
| 79 issue = IssueClass(db, "issue", | 79 issue = IssueClass(db, "issue", |
| 80 assignedto=Link("user"), topic=Multilink("keyword"), | 80 assignedto=Link("user"), topic=Multilink("keyword"), |
| 81 priority=Link("priority"), status=Link("status")) | 81 priority=Link("priority"), status=Link("status")) |
| 82 issue.setkey('title') | |
| 83 | 82 |
| 84 import detectors | 83 import detectors |
| 85 detectors.init(db) | 84 detectors.init(db) |
| 86 | 85 |
| 87 return db | 86 return db |
| 121 address=instance_config.ADMIN_EMAIL) | 120 address=instance_config.ADMIN_EMAIL) |
| 122 db.commit() | 121 db.commit() |
| 123 | 122 |
| 124 # | 123 # |
| 125 # $Log: not supported by cvs2svn $ | 124 # $Log: not supported by cvs2svn $ |
| 125 # Revision 1.15 2002/02/15 07:08:44 richard | |
| 126 # . Alternate email addresses are now available for users. See the MIGRATION | |
| 127 # file for info on how to activate the feature. | |
| 128 # | |
| 126 # Revision 1.14 2002/01/14 02:20:15 richard | 129 # Revision 1.14 2002/01/14 02:20:15 richard |
| 127 # . changed all config accesses so they access either the instance or the | 130 # . changed all config accesses so they access either the instance or the |
| 128 # config attriubute on the db. This means that all config is obtained from | 131 # config attriubute on the db. This means that all config is obtained from |
| 129 # instance_config instead of the mish-mash of classes. This will make | 132 # instance_config instead of the mish-mash of classes. This will make |
| 130 # switching to a ConfigParser setup easier too, I hope. | 133 # switching to a ConfigParser setup easier too, I hope. |
