Code

*** empty log message ***
[roundup.git] / roundup / init.py
index fe2cde8b678939abe5a5e7c69a96aa120c40394d..0ede7b06f0c697539bb75a2bd9d651e838605628 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: init.py,v 1.19 2002-05-23 01:14:20 richard Exp $
+# $Id: init.py,v 1.22 2002-09-05 23:39:12 richard Exp $
 
 __doc__ = """
 Init (create) a roundup instance.
@@ -87,18 +87,20 @@ def install(instance_home, template, backend):
     the template.
     '''
     # first, copy the template dir over
-    import roundup.templatebuilder
+    from roundup.templates import builder
 
+    # copy the roundup.templates.<template> package contents to the instance dir
     template_dir = os.path.split(__file__)[0]
     template_name = template
     template = os.path.join(template_dir, 'templates', template)
     copytree(template, instance_home)
 
-    roundup.templatebuilder.installHtmlBase(template_name, instance_home)
+    builder.installHtmlBase(template_name, instance_home)
 
     # now select database
     db = '''# WARNING: DO NOT EDIT THIS FILE!!!
-from roundup.backends.back_%s import Database'''%backend
+from roundup.backends.back_%s import Database, Class, FileClass, IssueClass
+'''%backend
     open(os.path.join(instance_home, 'select_db.py'), 'w').write(db)
 
 
@@ -113,6 +115,16 @@ def initialise(instance_home, adminpw):
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.21  2002/08/16 04:25:03  richard
+# cleanup: moved templatebuilder into templates.builder
+#
+# Revision 1.20  2002/07/14 02:05:53  richard
+# . all storage-specific code (ie. backend) is now implemented by the backends
+#
+# Revision 1.19  2002/05/23 01:14:20  richard
+#  . split instance initialisation into two steps, allowing config changes
+#    before the database is initialised.
+#
 # Revision 1.18  2001/11/22 15:46:42  jhermann
 # Added module docstrings to all modules.
 #