comparison roundup/init.py @ 69:0eed07d99b98

oops. Html.
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Tue, 24 Jul 2001 10:54:11 +0000
parents 5e71aaa87e5b
children d95a03480fd1
comparison
equal deleted inserted replaced
68:5e71aaa87e5b 69:0eed07d99b98
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 $
2 2
3 import os, shutil, sys 3 import os, shutil, sys
4 4
5 def copytree(src, dst, symlinks=0): 5 def copytree(src, dst, symlinks=0):
6 """Recursively copy a directory tree using copy2(). 6 """Recursively copy a directory tree using copy2().
16 16
17 """ 17 """
18 names = os.listdir(src) 18 names = os.listdir(src)
19 try: 19 try:
20 os.mkdir(dst) 20 os.mkdir(dst)
21 print "making", dst
21 except OSError, error: 22 except OSError, error:
22 if error.errno != 17: raise 23 if error.errno != 17: raise
23 for name in names: 24 for name in names:
24 srcname = os.path.join(src, name) 25 srcname = os.path.join(src, name)
25 dstname = os.path.join(dst, name) 26 dstname = os.path.join(dst, name)
55 instance = __import__(instance) 56 instance = __import__(instance)
56 instance.init(adminpw) 57 instance.init(adminpw)
57 58
58 # 59 #
59 # $Log: not supported by cvs2svn $ 60 # $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 #
60 # Revision 1.3 2001/07/23 08:45:28 richard 69 # Revision 1.3 2001/07/23 08:45:28 richard
61 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a 70 # ok, so now "./roundup-admin init" will ask questions in an attempt to get a
62 # workable instance_home set up :) 71 # workable instance_home set up :)
63 # _and_ anydbm has had its first test :) 72 # _and_ anydbm has had its first test :)
64 # 73 #

Roundup Issue Tracker: http://roundup-tracker.org/