comparison roundup/templatebuilder.py @ 139:16fdc86183fe

Hrm - had IOError instead of OSError. Not sure why there's two. Ho hum.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jul 2001 00:06:52 +0000
parents 0791d13baea7
children a49c8a2ddd26
comparison
equal deleted inserted replaced
138:e012bb958238 139:16fdc86183fe
1 # $Id: templatebuilder.py,v 1.6 2001-07-29 07:01:39 richard Exp $ 1 # $Id: templatebuilder.py,v 1.7 2001-07-30 00:06:52 richard Exp $
2 import errno 2 import errno
3 3
4 preamble = """ 4 preamble = """
5 # Do Not Edit (Unless You Want To) 5 # Do Not Edit (Unless You Want To)
6 # This file automagically generated by roundup.htmldata.makeHtmlBase 6 # This file automagically generated by roundup.htmldata.makeHtmlBase
36 raise "TemplateError", "couldn't find roundup.template.%s.htmlbase"%template 36 raise "TemplateError", "couldn't find roundup.template.%s.htmlbase"%template
37 htmlbase = tmod.htmlbase 37 htmlbase = tmod.htmlbase
38 installDir = os.path.join(installDir, 'html') 38 installDir = os.path.join(installDir, 'html')
39 try: 39 try:
40 os.makedirs(installDir) 40 os.makedirs(installDir)
41 except IOError, error: 41 except OSError, error:
42 if error.errno != errno.EEXIST: raise 42 if error.errno != errno.EEXIST: raise
43 43
44 # print "installing from", htmlbase.__file__, "into", installDir 44 # print "installing from", htmlbase.__file__, "into", installDir
45 modulecontents = dir(htmlbase) 45 modulecontents = dir(htmlbase)
46 for mangledfile in modulecontents: 46 for mangledfile in modulecontents:
63 else: 63 else:
64 raise "what you talkin about willis?" 64 raise "what you talkin about willis?"
65 65
66 # 66 #
67 # $Log: not supported by cvs2svn $ 67 # $Log: not supported by cvs2svn $
68 # Revision 1.6 2001/07/29 07:01:39 richard
69 # Added vim command to all source so that we don't get no steenkin' tabs :)
70 #
68 # 71 #
69 # 72 #
70 # vim: set filetype=python ts=4 sw=4 et si 73 # vim: set filetype=python ts=4 sw=4 et si

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