Code

Added templatebuilder module. two functions - one to pack up the html base,
[roundup.git] / roundup / init.py
index d2e39a5d9aa78c214c9b93912490e6ad503ec9db..ef7b1aef25fae8c858798156fa56f2714c115431 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: init.py,v 1.3 2001-07-23 08:45:28 richard Exp $
+# $Id: init.py,v 1.4 2001-07-24 10:46:22 anthonybaxter Exp $
 
 import os, shutil, sys
 
@@ -35,10 +35,15 @@ def init(instance, template, backend, adminpw):
     ''' initialise an instance using the named template
     '''
     # first, copy the template dir over
+    import roundup.templatebuilder
+
     template_dir = os.path.split(__file__)[0]
+    template_name = template
     template = os.path.join(template_dir, 'templates', template)
     copytree(template, instance)
 
+    roundup.templatebuilder.installHtmlBase(template_name, instance)
+
     # now select database
     db = '''# WARNING: DO NOT EDIT THIS FILE!!!
 from roundup.backends.back_%s import Database'''%backend
@@ -52,6 +57,11 @@ from roundup.backends.back_%s import Database'''%backend
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.3  2001/07/23 08:45:28  richard
+# 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 :)
+#
 # Revision 1.2  2001/07/22 12:09:32  richard
 # Final commit of Grande Splite
 #