Mercurial > p > roundup > code
comparison roundup/templates/extended/dbinit.py @ 44:c1f3e058c58d
Moved the database backends off into backends.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 23 Jul 2001 07:14:41 +0000 |
| parents | 4b9ecc926ad7 |
| children | 3a7e5515c1bd |
comparison
equal
deleted
inserted
replaced
| 43:4b9ecc926ad7 | 44:c1f3e058c58d |
|---|---|
| 1 # $Id: dbinit.py,v 1.2 2001-07-23 06:25:50 richard Exp $ | 1 # $Id: dbinit.py,v 1.3 2001-07-23 07:14:41 richard Exp $ |
| 2 | |
| 3 import os | |
| 2 | 4 |
| 3 import instance_config | 5 import instance_config |
| 4 from roundup import hyperdb, backends.bsddb, roundupdb, cgi_client, mailgw | 6 from roundup import roundupdb, cgi_client, mailgw |
| 7 from roundup.backends import bsddb | |
| 8 from roundup.roundupdb import Class, FileClass | |
| 5 | 9 |
| 6 from roundup.roundupdb import Class, FileClass | 10 class Database(roundupdb.Database, bsddb.Database): |
| 7 import os | |
| 8 | |
| 9 | |
| 10 class Database(roundupdb.Database, backends.bsddb.Database): | |
| 11 ''' Creates a hybrid database from: | 11 ''' Creates a hybrid database from: |
| 12 . the base Database class given in hyperdb (basic functionlity) | 12 . the BSDDB implementation in backends.bsddb |
| 13 . the BSDDB implementation in hyperdb_bsddb | |
| 14 . the roundup extensions from roundupdb | 13 . the roundup extensions from roundupdb |
| 15 ''' | 14 ''' |
| 16 pass | 15 pass |
| 17 | 16 |
| 18 class IssueClass(roundupdb.IssueClass): | 17 class IssueClass(roundupdb.IssueClass): |
| 170 | 169 |
| 171 db.close() | 170 db.close() |
| 172 | 171 |
| 173 # | 172 # |
| 174 # $Log: not supported by cvs2svn $ | 173 # $Log: not supported by cvs2svn $ |
| 174 # Revision 1.2 2001/07/23 06:25:50 richard | |
| 175 # relfected the move to roundup/backends | |
| 176 # | |
| 175 # Revision 1.1 2001/07/23 04:33:21 anthonybaxter | 177 # Revision 1.1 2001/07/23 04:33:21 anthonybaxter |
| 176 # split __init__.py into 2. dbinit and instance_config. | 178 # split __init__.py into 2. dbinit and instance_config. |
| 177 # | 179 # |
| 178 # Revision 1.1 2001/07/23 03:50:46 anthonybaxter | 180 # Revision 1.1 2001/07/23 03:50:46 anthonybaxter |
| 179 # moved templates to proper location | 181 # moved templates to proper location |
