Mercurial > p > roundup > code
comparison roundup/templates/extended/dbinit.py @ 51:3a7e5515c1bd
ok, so now "./roundup-admin init" will ask questions...
...in an attempt to get a workable instance_home set up :)
_and_ anydbm has had its first test :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 23 Jul 2001 08:45:28 +0000 |
| parents | c1f3e058c58d |
| children | 03940dfa669e |
comparison
equal
deleted
inserted
replaced
| 50:674bd8e1b36e | 51:3a7e5515c1bd |
|---|---|
| 1 # $Id: dbinit.py,v 1.3 2001-07-23 07:14:41 richard Exp $ | 1 # $Id: dbinit.py,v 1.4 2001-07-23 08:45:28 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, cgi_client, mailgw | 6 from roundup import roundupdb, cgi_client, mailgw |
| 7 from roundup.backends import bsddb | 7 import select_db |
| 8 from roundup.roundupdb import Class, FileClass | 8 from roundup.roundupdb import Class, FileClass |
| 9 | 9 |
| 10 class Database(roundupdb.Database, bsddb.Database): | 10 class Database(roundupdb.Database, select_db.Database): |
| 11 ''' Creates a hybrid database from: | 11 ''' Creates a hybrid database from: |
| 12 . the BSDDB implementation in backends.bsddb | 12 . the selected database back-end from select_db |
| 13 . the roundup extensions from roundupdb | 13 . the roundup extensions from roundupdb |
| 14 ''' | 14 ''' |
| 15 pass | 15 pass |
| 16 | 16 |
| 17 class IssueClass(roundupdb.IssueClass): | 17 class IssueClass(roundupdb.IssueClass): |
| 169 | 169 |
| 170 db.close() | 170 db.close() |
| 171 | 171 |
| 172 # | 172 # |
| 173 # $Log: not supported by cvs2svn $ | 173 # $Log: not supported by cvs2svn $ |
| 174 # Revision 1.3 2001/07/23 07:14:41 richard | |
| 175 # Moved the database backends off into backends. | |
| 176 # | |
| 174 # Revision 1.2 2001/07/23 06:25:50 richard | 177 # Revision 1.2 2001/07/23 06:25:50 richard |
| 175 # relfected the move to roundup/backends | 178 # relfected the move to roundup/backends |
| 176 # | 179 # |
| 177 # Revision 1.1 2001/07/23 04:33:21 anthonybaxter | 180 # Revision 1.1 2001/07/23 04:33:21 anthonybaxter |
| 178 # split __init__.py into 2. dbinit and instance_config. | 181 # split __init__.py into 2. dbinit and instance_config. |
