summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4cb380e)
raw | patch | inline | side by side (parent: 4cb380e)
author | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jul 2001 10:54:11 +0000 (10:54 +0000) | ||
committer | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jul 2001 10:54:11 +0000 (10:54 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@74 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/init.py | patch | blob | history | |
roundup/templatebuilder.py | patch | blob | history |
diff --git a/roundup/init.py b/roundup/init.py
index ef7b1aef25fae8c858798156fa56f2714c115431..b1156fedb59a819590708f307a702ae841be0cc8 100644 (file)
--- a/roundup/init.py
+++ b/roundup/init.py
-# $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
names = os.listdir(src)
try:
os.mkdir(dst)
+ print "making", dst
except OSError, error:
if error.errno != 17: raise
for name in names:
#
# $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 :)
index 1cc06edfc96f340a81c5abb368d5d950890b67b1..0970abd1db2fe053c750fe882354952255d165e4 100644 (file)
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)