Mercurial > p > roundup > code
comparison roundup/templates/classic/dbinit.py @ 68:5e71aaa87e5b
Added templatebuilder module.
two functions - one to pack up the html base, one to unpack it. Packed
up the two standard templates into htmlbases. Modified __init__ to
install them.
__init__.py magic was needed for the rather high levels of wierd import magic.
Reducing level of import magic == (good, future)
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Jul 2001 10:46:22 +0000 |
| parents | e9735680d5b3 |
| children | 0791d13baea7 |
comparison
equal
deleted
inserted
replaced
| 67:5b0406c37ccd | 68:5e71aaa87e5b |
|---|---|
| 1 # $Id: dbinit.py,v 1.2 2001-07-24 01:06:43 richard Exp $ | 1 # $Id: dbinit.py,v 1.3 2001-07-24 10:46:22 anthonybaxter 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 import select_db | 7 import select_db |
| 8 | |
| 8 from roundup.roundupdb import Class, FileClass | 9 from roundup.roundupdb import Class, FileClass |
| 9 | 10 |
| 10 class Database(roundupdb.Database, select_db.Database): | 11 class Database(roundupdb.Database, select_db.Database): |
| 11 ''' Creates a hybrid database from: | 12 ''' Creates a hybrid database from: |
| 12 . the selected database back-end from select_db | 13 . the selected database back-end from select_db |
| 104 | 105 |
| 105 db.close() | 106 db.close() |
| 106 | 107 |
| 107 # | 108 # |
| 108 # $Log: not supported by cvs2svn $ | 109 # $Log: not supported by cvs2svn $ |
| 110 # Revision 1.2 2001/07/24 01:06:43 richard | |
| 111 # Oops - accidentally duped the keywords class | |
| 112 # | |
| 109 # Revision 1.1 2001/07/23 23:28:43 richard | 113 # Revision 1.1 2001/07/23 23:28:43 richard |
| 110 # Adding the classic template | 114 # Adding the classic template |
| 111 # | 115 # |
| 112 # Revision 1.4 2001/07/23 08:45:28 richard | 116 # Revision 1.4 2001/07/23 08:45:28 richard |
| 113 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a | 117 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a |
