Skip to content

Commit 9ad8529

Browse files
author
Anthony Baxter
committed
oops. Html.
1 parent 9c8a075 commit 9ad8529

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

roundup/init.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: init.py,v 1.4 2001-07-24 10:46:22 anthonybaxter Exp $
1+
# $Id: init.py,v 1.5 2001-07-24 10:54:11 anthonybaxter Exp $
22

33
import os, shutil, sys
44

@@ -18,6 +18,7 @@ def copytree(src, dst, symlinks=0):
1818
names = os.listdir(src)
1919
try:
2020
os.mkdir(dst)
21+
print "making", dst
2122
except OSError, error:
2223
if error.errno != 17: raise
2324
for name in names:
@@ -57,6 +58,14 @@ def init(instance, template, backend, adminpw):
5758

5859
#
5960
# $Log: not supported by cvs2svn $
61+
# Revision 1.4 2001/07/24 10:46:22 anthonybaxter
62+
# Added templatebuilder module. two functions - one to pack up the html base,
63+
# one to unpack it. Packed up the two standard templates into htmlbases.
64+
# Modified __init__ to install them.
65+
#
66+
# __init__.py magic was needed for the rather high levels of wierd import magic.
67+
# Reducing level of import magic == (good, future)
68+
#
6069
# Revision 1.3 2001/07/23 08:45:28 richard
6170
# ok, so now "./roundup-admin init" will ask questions in an attempt to get a
6271
# workable instance_home set up :)

roundup/templatebuilder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def installHtmlBase(template, installDir):
3333
raise "TemplateError", \
3434
"couldn't find roundup.template.%s.htmlbase"%template
3535
htmlbase = tmod.htmlbase
36+
installDir = os.path.join(installDir, 'html')
3637

3738
print "installing from", htmlbase.__file__, "into", installDir
3839
modulecontents = dir(htmlbase)

0 commit comments

Comments
 (0)