From: anthonybaxter Date: Tue, 24 Jul 2001 10:54:11 +0000 (+0000) Subject: oops. Html. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e454fc73754e6d0cbd4bc5ba76965599897a94e0;p=roundup.git oops. Html. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@74 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/init.py b/roundup/init.py index ef7b1ae..b1156fe 100644 --- a/roundup/init.py +++ b/roundup/init.py @@ -1,4 +1,4 @@ -# $Id: init.py,v 1.4 2001-07-24 10:46:22 anthonybaxter Exp $ +# $Id: init.py,v 1.5 2001-07-24 10:54:11 anthonybaxter Exp $ import os, shutil, sys @@ -18,6 +18,7 @@ def copytree(src, dst, symlinks=0): names = os.listdir(src) try: os.mkdir(dst) + print "making", dst except OSError, error: if error.errno != 17: raise for name in names: @@ -57,6 +58,14 @@ from roundup.backends.back_%s import Database'''%backend # # $Log: not supported by cvs2svn $ +# Revision 1.4 2001/07/24 10:46:22 anthonybaxter +# 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) +# # 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 :) diff --git a/roundup/templatebuilder.py b/roundup/templatebuilder.py index 1cc06ed..0970abd 100644 --- a/roundup/templatebuilder.py +++ b/roundup/templatebuilder.py @@ -33,6 +33,7 @@ def installHtmlBase(template, installDir): raise "TemplateError", \ "couldn't find roundup.template.%s.htmlbase"%template htmlbase = tmod.htmlbase + installDir = os.path.join(installDir, 'html') print "installing from", htmlbase.__file__, "into", installDir modulecontents = dir(htmlbase)