Mercurial > p > roundup > code
annotate roundup/templates/extended/dbinit.py @ 858:2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 14 Jul 2002 02:05:54 +0000 |
| parents | 0779ea9f1f18 |
| children | 502a5ae11cc5 |
| rev | line source |
|---|---|
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
1 # |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
3 # This module is free software, and you may redistribute it and/or modify |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
4 # under the same terms as Python, so long as this copyright message and |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
5 # disclaimer are retained in their original form. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
6 # |
| 214 | 7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR |
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
10 # POSSIBILITY OF SUCH DAMAGE. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
11 # |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
17 # |
|
858
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
18 # $Id: dbinit.py,v 1.23 2002-07-14 02:05:54 richard Exp $ |
|
44
c1f3e058c58d
Moved the database backends off into backends.
Richard Jones <richard@users.sourceforge.net>
parents:
43
diff
changeset
|
19 |
|
c1f3e058c58d
Moved the database backends off into backends.
Richard Jones <richard@users.sourceforge.net>
parents:
43
diff
changeset
|
20 import os |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
21 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
22 import instance_config |
|
858
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
23 from select_db import Database, Class, FileClass, IssueClass |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
24 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
25 def open(name=None): |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
26 ''' as from the roundupdb method openDB |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
27 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
28 ''' |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
29 from roundup.hyperdb import String, Password, Date, Link, Multilink |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
30 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
31 # open the database |
|
524
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
32 db = Database(instance_config, name) |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
33 |
|
748
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
34 # |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
35 # Now initialise the schema. Must do this each time the database is |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
36 # opened. |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
37 # |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
38 |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
39 # Class automatically gets these properties: |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
40 # creation = Date() |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
41 # activity = Date() |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
42 # creator = Link('user') |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
43 pri = Class(db, "priority", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
44 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
45 pri.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
46 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
47 stat = Class(db, "status", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
48 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
49 stat.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
50 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
51 keywords = Class(db, "keyword", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
52 name=String()) |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
53 keywords.setkey("name") |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
54 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
55 user = Class(db, "user", |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
56 username=String(), password=Password(), |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
57 address=String(), realname=String(), |
|
617
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
58 phone=String(), organisation=String(), |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
59 alternate_addresses=String()) |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
60 user.setkey("username") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
61 |
|
748
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
62 # FileClass automatically gets these properties: |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
63 # content = String() [saved to disk in <instance home>/db/files/] |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
64 # (it also gets the Class properties creation, activity and creator) |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
65 msg = FileClass(db, "msg", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
66 author=Link("user"), recipients=Multilink("user"), |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
67 date=Date(), summary=String(), |
|
475
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
68 files=Multilink("file"), |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
69 messageid=String(), inreplyto=String()) |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
70 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
71 file = FileClass(db, "file", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
72 name=String(), type=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
73 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
74 # bugs and support calls etc |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
75 rate = Class(db, "rate", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
76 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
77 rate.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
78 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
79 source = Class(db, "source", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
80 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
81 source.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
82 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
83 platform = Class(db, "platform", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
84 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
85 platform.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
86 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
87 product = Class(db, "product", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
88 name=String(), order=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
89 product.setkey("name") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
90 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
91 timelog = Class(db, "timelog", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
92 date=Date(), time=String(), |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
93 performedby=Link("user"), description=String()) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
94 |
|
748
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
95 # IssueClass automatically gets these properties: |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
96 # title = String() |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
97 # messages = Multilink("msg") |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
98 # files = Multilink("file") |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
99 # nosy = Multilink("user") |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
100 # superseder = Multilink("issue") |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
101 # (it also gets the Class properties creation, activity and creator) |
| 144 | 102 support = IssueClass(db, "support", |
| 103 assignedto=Link("user"), status=Link("status"), | |
| 104 rate=Link("rate"), source=Link("source"), | |
| 105 product=Link("product"), platform=Multilink("platform"), | |
| 106 version=String(), timelog=Multilink("timelog"), | |
| 107 customername=String()) | |
| 108 | |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
109 issue = IssueClass(db, "issue", |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
110 assignedto=Link("user"), priority=Link("priority"), |
| 144 | 111 status=Link("status"), product=Link("product"), |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
112 platform=Multilink("platform"), version=String(), |
|
394
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
113 targetversion=String(), supportcall=Multilink("support")) |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
114 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
115 import detectors |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
116 detectors.init(db) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
117 |
|
825
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
118 # schema is set up - run any post-initialisation |
|
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
119 db.post_init() |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
120 return db |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
121 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
122 def init(adminpw): |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
123 ''' as from the roundupdb method initDB |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
124 |
|
748
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
125 Open the new database, and add new nodes - used for initialisation. You |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
126 can edit this before running the "roundup-admin initialise" command to |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
127 change the initial database entries. |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
128 ''' |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
129 dbdir = os.path.join(instance_config.DATABASE, 'files') |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
130 if not os.path.isdir(dbdir): |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
131 os.makedirs(dbdir) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
132 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
133 db = open("admin") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
134 db.clear() |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
135 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
136 pri = db.getclass('priority') |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
137 pri.create(name="fatal-bug", order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
138 pri.create(name="bug", order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
139 pri.create(name="usability", order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
140 pri.create(name="feature", order="4") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
141 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
142 stat = db.getclass('status') |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
143 stat.create(name="unread", order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
144 stat.create(name="deferred", order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
145 stat.create(name="chatting", order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
146 stat.create(name="need-eg", order="4") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
147 stat.create(name="in-progress", order="5") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
148 stat.create(name="testing", order="6") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
149 stat.create(name="done-cbb", order="7") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
150 stat.create(name="resolved", order="8") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
151 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
152 rate = db.getclass("rate") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
153 rate.create(name='basic', order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
154 rate.create(name='premium', order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
155 rate.create(name='internal', order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
156 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
157 source = db.getclass("source") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
158 source.create(name='phone', order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
159 source.create(name='e-mail', order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
160 source.create(name='internal', order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
161 source.create(name='internal-qa', order="4") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
162 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
163 platform = db.getclass("platform") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
164 platform.create(name='linux', order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
165 platform.create(name='windows', order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
166 platform.create(name='mac', order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
167 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
168 product = db.getclass("product") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
169 product.create(name='Bizar Shop', order="1") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
170 product.create(name='Bizar Shop Developer', order="2") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
171 product.create(name='Bizar Shop Manual', order="3") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
172 product.create(name='Bizar Shop Developer Manual', order="4") |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
173 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
174 user = db.getclass('user') |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
175 user.create(username="admin", password=adminpw, |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
176 address=instance_config.ADMIN_EMAIL) |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
177 |
|
430
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
178 db.commit() |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
179 |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
180 # |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
181 # $Log: not supported by cvs2svn $ |
|
858
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
182 # Revision 1.22 2002/07/09 03:02:53 richard |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
183 # More indexer work: |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
184 # - all String properties may now be indexed too. Currently there's a bit of |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
185 # "issue" specific code in the actual searching which needs to be |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
186 # addressed. In a nutshell: |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
187 # + pass 'indexme="yes"' as a String() property initialisation arg, eg: |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
188 # file = FileClass(db, "file", name=String(), type=String(), |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
189 # comment=String(indexme="yes")) |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
190 # + the comment will then be indexed and be searchable, with the results |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
191 # related back to the issue that the file is linked to |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
192 # - as a result of this work, the FileClass has a default MIME type that may |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
193 # be overridden in a subclass, or by the use of a "type" property as is |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
194 # done in the default templates. |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
195 # - the regeneration of the indexes (if necessary) is done once the schema is |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
196 # set up in the dbinit. |
|
2dd862af72ee
all storage-specific code (ie. backend) is now implemented by the backends
Richard Jones <richard@users.sourceforge.net>
parents:
825
diff
changeset
|
197 # |
|
825
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
198 # Revision 1.21 2002/05/24 04:03:23 richard |
|
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
199 # Added commentage to the dbinit files to help people with their |
|
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
200 # customisation. |
|
0779ea9f1f18
More indexer work:
Richard Jones <richard@users.sourceforge.net>
parents:
748
diff
changeset
|
201 # |
|
748
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
202 # Revision 1.20 2002/02/15 07:08:44 richard |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
203 # . Alternate email addresses are now available for users. See the MIGRATION |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
204 # file for info on how to activate the feature. |
|
2e70123bbf5a
Added commentage to the dbinit files to help people with their customisation.
Richard Jones <richard@users.sourceforge.net>
parents:
617
diff
changeset
|
205 # |
|
617
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
206 # Revision 1.19 2002/01/14 02:20:15 richard |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
207 # . changed all config accesses so they access either the instance or the |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
208 # config attriubute on the db. This means that all config is obtained from |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
209 # instance_config instead of the mish-mash of classes. This will make |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
210 # switching to a ConfigParser setup easier too, I hope. |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
211 # |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
212 # At a minimum, this makes migration a _little_ easier (a lot easier in the |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
213 # 0.5.0 switch, I hope!) |
|
edd210915e64
Alternate email addresses are now available for users.
Richard Jones <richard@users.sourceforge.net>
parents:
524
diff
changeset
|
214 # |
|
524
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
215 # Revision 1.18 2002/01/02 02:31:38 richard |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
216 # Sorry for the huge checkin message - I was only intending to implement #496356 |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
217 # but I found a number of places where things had been broken by transactions: |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
218 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
219 # for _all_ roundup-generated smtp messages to be sent to. |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
220 # . the transaction cache had broken the roundupdb.Class set() reactors |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
221 # . newly-created author users in the mailgw weren't being committed to the db |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
222 # |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
223 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
224 # on when I found that stuff :): |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
225 # . #496356 ] Use threading in messages |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
226 # . detectors were being registered multiple times |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
227 # . added tests for mailgw |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
228 # . much better attaching of erroneous messages in the mail gateway |
|
dce4c75bef5a
changed all config accesses...
Richard Jones <richard@users.sourceforge.net>
parents:
475
diff
changeset
|
229 # |
|
475
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
230 # Revision 1.17 2001/12/02 05:06:16 richard |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
231 # . We now use weakrefs in the Classes to keep the database reference, so |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
232 # the close() method on the database is no longer needed. |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
233 # I bumped the minimum python requirement up to 2.1 accordingly. |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
234 # . #487480 ] roundup-server |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
235 # . #487476 ] INSTALL.txt |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
236 # |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
237 # I also cleaned up the change message / post-edit stuff in the cgi client. |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
238 # There's now a clearly marked "TODO: append the change note" where I believe |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
239 # the change note should be added there. The "changes" list will obviously |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
240 # have to be modified to be a dict of the changes, or somesuch. |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
241 # |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
242 # More testing needed. |
|
a1a44636bace
Fix breakage caused by transaction changes.
Richard Jones <richard@users.sourceforge.net>
parents:
431
diff
changeset
|
243 # |
|
431
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
244 # Revision 1.16 2001/12/01 07:17:50 richard |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
245 # . We now have basic transaction support! Information is only written to |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
246 # the database when the commit() method is called. Only the anydbm |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
247 # backend is modified in this way - neither of the bsddb backends have been. |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
248 # The mail, admin and cgi interfaces all use commit (except the admin tool |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
249 # doesn't have a commit command, so interactive users can't commit...) |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
250 # . Fixed login/registration forwarding the user to the right page (or not, |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
251 # on a failure) |
|
a28a80b714f9
Eliminate database close method by using weakrefs.
Richard Jones <richard@users.sourceforge.net>
parents:
430
diff
changeset
|
252 # |
|
430
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
253 # Revision 1.15 2001/11/26 22:55:56 richard |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
254 # Feature: |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
255 # . Added INSTANCE_NAME to configuration - used in web and email to identify |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
256 # the instance. |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
257 # . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
258 # signature info in e-mails. |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
259 # . Some more flexibility in the mail gateway and more error handling. |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
260 # . Login now takes you to the page you back to the were denied access to. |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
261 # |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
262 # Fixed: |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
263 # . Lots of bugs, thanks Roché and others on the devel mailing list! |
|
350685601f37
Database transactions.
Richard Jones <richard@users.sourceforge.net>
parents:
411
diff
changeset
|
264 # |
|
411
a6088556e9ba
Features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents:
394
diff
changeset
|
265 # Revision 1.14 2001/11/21 02:34:18 richard |
|
a6088556e9ba
Features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents:
394
diff
changeset
|
266 # Added a target version field to the extended issue schema |
|
a6088556e9ba
Features and fixes.
Richard Jones <richard@users.sourceforge.net>
parents:
394
diff
changeset
|
267 # |
|
394
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
268 # Revision 1.13 2001/10/30 00:54:45 richard |
|
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
269 # Features: |
|
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
270 # . #467129 ] Lossage when username=e-mail-address |
|
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
271 # . #473123 ] Change message generation for author |
|
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
272 # . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue. |
|
f43af1e97fdd
Added a target version field to the extended issue schema
Richard Jones <richard@users.sourceforge.net>
parents:
337
diff
changeset
|
273 # |
| 337 | 274 # Revision 1.12 2001/10/09 07:25:59 richard |
| 275 # Added the Password property type. See "pydoc roundup.password" for | |
| 276 # implementation details. Have updated some of the documentation too. | |
| 277 # | |
|
270
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
278 # Revision 1.11 2001/08/07 00:24:43 richard |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
279 # stupid typo |
|
a4241ddd22d7
Added the Password property type.
Richard Jones <richard@users.sourceforge.net>
parents:
214
diff
changeset
|
280 # |
| 214 | 281 # Revision 1.10 2001/08/07 00:15:51 richard |
| 282 # Added the copyright/license notice to (nearly) all files at request of | |
| 283 # Bizar Software. | |
| 284 # | |
|
213
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
285 # Revision 1.9 2001/08/02 06:38:17 richard |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
286 # Roundupdb now appends "mailing list" information to its messages which |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
287 # include the e-mail address and web interface address. Templates may |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
288 # override this in their db classes to include specific information (support |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
289 # instructions, etc). |
|
d45384bc6420
Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents:
188
diff
changeset
|
290 # |
|
188
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
291 # Revision 1.8 2001/07/30 01:26:59 richard |
|
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
292 # Big changes: |
|
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
293 # . split off the support priority into its own class |
|
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
294 # . added "new support, new user" to the page head |
|
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
295 # . fixed the display options for the heading links |
|
1536be43d2fa
Roundupdb now appends "mailing list" information to its messages...
Richard Jones <richard@users.sourceforge.net>
parents:
144
diff
changeset
|
296 # |
| 144 | 297 # Revision 1.7 2001/07/29 07:01:39 richard |
| 298 # Added vim command to all source so that we don't get no steenkin' tabs :) | |
| 299 # | |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
71
diff
changeset
|
300 # Revision 1.6 2001/07/25 01:23:07 richard |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
71
diff
changeset
|
301 # Added the Roundup spec to the new documentation directory. |
|
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
71
diff
changeset
|
302 # |
|
71
5147b4c51fd5
Added the Roundup spec to the new documentation directory.
Richard Jones <richard@users.sourceforge.net>
parents:
56
diff
changeset
|
303 # Revision 1.5 2001/07/23 23:20:35 richard |
|
5147b4c51fd5
Added the Roundup spec to the new documentation directory.
Richard Jones <richard@users.sourceforge.net>
parents:
56
diff
changeset
|
304 # forgot to remove the interfaces from the dbinit module ;) |
|
5147b4c51fd5
Added the Roundup spec to the new documentation directory.
Richard Jones <richard@users.sourceforge.net>
parents:
56
diff
changeset
|
305 # |
|
56
03940dfa669e
forgot to remove the interfaces from the dbinit module ;)
Richard Jones <richard@users.sourceforge.net>
parents:
51
diff
changeset
|
306 # Revision 1.4 2001/07/23 08:45:28 richard |
|
03940dfa669e
forgot to remove the interfaces from the dbinit module ;)
Richard Jones <richard@users.sourceforge.net>
parents:
51
diff
changeset
|
307 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a |
|
03940dfa669e
forgot to remove the interfaces from the dbinit module ;)
Richard Jones <richard@users.sourceforge.net>
parents:
51
diff
changeset
|
308 # workable instance_home set up :) |
|
03940dfa669e
forgot to remove the interfaces from the dbinit module ;)
Richard Jones <richard@users.sourceforge.net>
parents:
51
diff
changeset
|
309 # _and_ anydbm has had its first test :) |
|
03940dfa669e
forgot to remove the interfaces from the dbinit module ;)
Richard Jones <richard@users.sourceforge.net>
parents:
51
diff
changeset
|
310 # |
|
51
3a7e5515c1bd
ok, so now "./roundup-admin init" will ask questions...
Richard Jones <richard@users.sourceforge.net>
parents:
44
diff
changeset
|
311 # Revision 1.3 2001/07/23 07:14:41 richard |
|
3a7e5515c1bd
ok, so now "./roundup-admin init" will ask questions...
Richard Jones <richard@users.sourceforge.net>
parents:
44
diff
changeset
|
312 # Moved the database backends off into backends. |
|
3a7e5515c1bd
ok, so now "./roundup-admin init" will ask questions...
Richard Jones <richard@users.sourceforge.net>
parents:
44
diff
changeset
|
313 # |
|
44
c1f3e058c58d
Moved the database backends off into backends.
Richard Jones <richard@users.sourceforge.net>
parents:
43
diff
changeset
|
314 # Revision 1.2 2001/07/23 06:25:50 richard |
|
c1f3e058c58d
Moved the database backends off into backends.
Richard Jones <richard@users.sourceforge.net>
parents:
43
diff
changeset
|
315 # relfected the move to roundup/backends |
|
c1f3e058c58d
Moved the database backends off into backends.
Richard Jones <richard@users.sourceforge.net>
parents:
43
diff
changeset
|
316 # |
|
43
4b9ecc926ad7
relfected the move to roundup/backends
Richard Jones <richard@users.sourceforge.net>
parents:
36
diff
changeset
|
317 # Revision 1.1 2001/07/23 04:33:21 anthonybaxter |
|
4b9ecc926ad7
relfected the move to roundup/backends
Richard Jones <richard@users.sourceforge.net>
parents:
36
diff
changeset
|
318 # split __init__.py into 2. dbinit and instance_config. |
|
4b9ecc926ad7
relfected the move to roundup/backends
Richard Jones <richard@users.sourceforge.net>
parents:
36
diff
changeset
|
319 # |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
320 # Revision 1.1 2001/07/23 03:50:46 anthonybaxter |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
321 # moved templates to proper location |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
322 # |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
323 # Revision 1.2 2001/07/22 12:09:32 richard |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
324 # Final commit of Grande Splite |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
325 # |
|
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
326 # |
|
127
0791d13baea7
Added vim command to all source so that we don't get no steenkin' tabs :)
Richard Jones <richard@users.sourceforge.net>
parents:
71
diff
changeset
|
327 # vim: set filetype=python ts=4 sw=4 et si |
|
36
41e49de57a85
split __init__.py into 2. dbinit and instance_config.
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff
changeset
|
328 |
