From ec76e6671787c126ed32f65a8564da41c2ad7196 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 1 Aug 2001 05:06:10 +0000 Subject: [PATCH] htmlbase doesn't have extraneous $Foo$ in it any more git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@180 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/templatebuilder.py | 10 ++++++--- roundup/templates/classic/htmlbase.py | 18 ++++++++--------- roundup/templates/extended/htmlbase.py | 28 +++++++++++++------------- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/roundup/templatebuilder.py b/roundup/templatebuilder.py index bd47d0c..7b9ac87 100644 --- a/roundup/templatebuilder.py +++ b/roundup/templatebuilder.py @@ -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 @@ def makeHtmlBase(templateDir): 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 @@ if __name__ == "__main__": # # $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. # diff --git a/roundup/templates/classic/htmlbase.py b/roundup/templates/classic/htmlbase.py index cccb573..2e005bb 100644 --- a/roundup/templates/classic/htmlbase.py +++ b/roundup/templates/classic/htmlbase.py @@ -2,7 +2,7 @@ # Do Not Edit (Unless You Want To) # This file automagically generated by roundup.htmldata.makeHtmlBase # -fileDOTindex = """ +fileDOTindex = """ @@ -13,7 +13,7 @@ fileDOTindex = """ +fileDOTnewitem = """ @@ -33,7 +33,7 @@ fileDOTnewitem = """ +issueDOTfilter = """ @@ -48,7 +48,7 @@ issueDOTfilter = """ +issueDOTindex = """"> @@ -71,7 +71,7 @@ issueDOTindex = """ +issueDOTitem = """
Title
@@ -142,7 +142,7 @@ issueDOTitem = """ +msgDOTindex = """ @@ -156,7 +156,7 @@ msgDOTindex = """ +msgDOTitem = """
@@ -403,7 +403,7 @@ th { } """ -userDOTindex = """ +userDOTindex = """ @@ -423,7 +423,7 @@ userDOTindex = """ +userDOTitem = """
diff --git a/roundup/templates/extended/htmlbase.py b/roundup/templates/extended/htmlbase.py index 91a3952..911f4a7 100644 --- a/roundup/templates/extended/htmlbase.py +++ b/roundup/templates/extended/htmlbase.py @@ -2,7 +2,7 @@ # Do Not Edit (Unless You Want To) # This file automagically generated by roundup.htmldata.makeHtmlBase # -fileDOTindex = """ +fileDOTindex = """ @@ -13,7 +13,7 @@ fileDOTindex = """ +fileDOTnewitem = """
@@ -33,7 +33,7 @@ fileDOTnewitem = """ +issueDOTfilter = """ @@ -64,7 +64,7 @@ issueDOTfilter = """ +issueDOTindex = """ @@ -96,7 +96,7 @@ issueDOTindex = """ +issueDOTitem = """
Title
@@ -182,7 +182,7 @@ issueDOTitem = """ +msgDOTindex = """ @@ -196,7 +196,7 @@ msgDOTindex = """ +msgDOTitem = """
@@ -400,7 +400,7 @@ th { } """ -supportDOTfilter = """ +supportDOTfilter = """ @@ -435,7 +435,7 @@ supportDOTfilter = """ +supportDOTindex = """ @@ -470,7 +470,7 @@ supportDOTindex = """ +supportDOTitem = """
Title
@@ -577,7 +577,7 @@ supportDOTitem = """ +timelogDOTindex = """ @@ -594,7 +594,7 @@ timelogDOTindex = """ +timelogDOTitem = """
@@ -634,7 +634,7 @@ timelogDOTitem = """ +userDOTindex = """ @@ -654,7 +654,7 @@ userDOTindex = """ +userDOTitem = """
-- 2.30.2