comparison roundup/templates/extended/dbinit.py @ 56:03940dfa669e

forgot to remove the interfaces from the dbinit module ;)
author Richard Jones <richard@users.sourceforge.net>
date Mon, 23 Jul 2001 23:20:35 +0000
parents 3a7e5515c1bd
children 5147b4c51fd5
comparison
equal deleted inserted replaced
55:bd7be96eb56d 56:03940dfa669e
1 # $Id: dbinit.py,v 1.4 2001-07-23 08:45:28 richard Exp $ 1 # $Id: dbinit.py,v 1.5 2001-07-23 23:20:35 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
7 import select_db 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, select_db.Database): 10 class Database(roundupdb.Database, select_db.Database):
11 ''' Creates a hybrid database from: 11 ''' Creates a hybrid database from:
19 ''' 19 '''
20 ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL 20 ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL
21 ADMIN_EMAIL = instance_config.ADMIN_EMAIL 21 ADMIN_EMAIL = instance_config.ADMIN_EMAIL
22 MAILHOST = instance_config.MAILHOST 22 MAILHOST = instance_config.MAILHOST
23 23
24
25 class Client(cgi_client.Client):
26 ''' derives basic mail gateway implementation from the standard module,
27 with any specific extensions
28 '''
29 TEMPLATES = instance_config.TEMPLATES
30 pass
31
32 class MailGW(mailgw.MailGW):
33 ''' derives basic mail gateway implementation from the standard module,
34 with any specific extensions
35 '''
36 ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL
37 ADMIN_EMAIL = instance_config.ADMIN_EMAIL
38 MAILHOST = instance_config.MAILHOST
39 24
40 def open(name=None): 25 def open(name=None):
41 ''' as from the roundupdb method openDB 26 ''' as from the roundupdb method openDB
42 27
43 storagelocator must be the directory the __init__.py file is in 28 storagelocator must be the directory the __init__.py file is in
169 154
170 db.close() 155 db.close()
171 156
172 # 157 #
173 # $Log: not supported by cvs2svn $ 158 # $Log: not supported by cvs2svn $
159 # Revision 1.4 2001/07/23 08:45:28 richard
160 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a
161 # workable instance_home set up :)
162 # _and_ anydbm has had its first test :)
163 #
174 # Revision 1.3 2001/07/23 07:14:41 richard 164 # Revision 1.3 2001/07/23 07:14:41 richard
175 # Moved the database backends off into backends. 165 # Moved the database backends off into backends.
176 # 166 #
177 # Revision 1.2 2001/07/23 06:25:50 richard 167 # Revision 1.2 2001/07/23 06:25:50 richard
178 # relfected the move to roundup/backends 168 # relfected the move to roundup/backends

Roundup Issue Tracker: http://roundup-tracker.org/