Mercurial > p > roundup > code
diff roundup/templatebuilder.py @ 174:2775f6727070
htmlbase doesn't have extraneous $Foo$ in it any more
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 01 Aug 2001 05:06:10 +0000 |
| parents | a49c8a2ddd26 |
| children | d45384bc6420 |
line wrap: on
line diff
--- a/roundup/templatebuilder.py Wed Aug 01 04:29:31 2001 +0000 +++ b/roundup/templatebuilder.py Wed Aug 01 05:06:10 2001 +0000 @@ -1,5 +1,5 @@ -# $Id: templatebuilder.py,v 1.8 2001-07-30 08:12:17 richard Exp $ -import errno +# $Id: templatebuilder.py,v 1.9 2001-08-01 05:06:10 richard Exp $ +import errno, re preamble = """ # Do Not Edit (Unless You Want To) @@ -22,7 +22,8 @@ if file[-1] == '~': continue mangled_name = os.path.basename(re.sub(r'\.', 'DOT', file)) fd.write('%s = """'%mangled_name) - fd.write(open(file).read()) + fd.write(re.sub(r'\$((Id|File|Log).*?)\$', r'dollar\1dollar', + open(file).read(), re.I)) fd.write('"""\n\n') fd.close() @@ -67,6 +68,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.8 2001/07/30 08:12:17 richard +# Added time logging and file uploading to the templates. +# # Revision 1.7 2001/07/30 00:06:52 richard # Hrm - had IOError instead of OSError. Not sure why there's two. Ho hum. #
