diff options
author | Sean Finney <seanius@debian.org> | 2008-06-02 20:17:52 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-06-02 20:17:52 +0200 |
commit | 9d68e03bca4229a43ad64c13283c730fb091de53 (patch) | |
tree | b3a023e906345113e8f6b8368ea40e1cab10cf6c /gen-patch-info.py | |
parent | 72f19903ae8c7e07b26f1625e957bb07395fb260 (diff) | |
download | patch-tracker-9d68e03bca4229a43ad64c13283c730fb091de53.tar.gz |
rework templates to use inheritance
also added a gitignore file to ignore the python noise
created by cheetah
Diffstat (limited to 'gen-patch-info.py')
-rwxr-xr-x | gen-patch-info.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gen-patch-info.py b/gen-patch-info.py index 2a22c9f..59c56eb 100755 --- a/gen-patch-info.py +++ b/gen-patch-info.py @@ -8,6 +8,7 @@ from fnmatch import fnmatch from gzip import GzipFile from debian_bundle import deb822 from Cheetah.Template import Template +from Cheetah.Compiler import Compiler class Conf: archive_root = '/scratch/debian-archive/debian' @@ -148,7 +149,7 @@ class PackageVersTemplate(OurTemplate): def __init__(self, srcpkg, suite): self.src = srcpkg self.suite = suite - tpl=os.sep.join([Conf.template_dir, "package-vers.tmpl"]) + tpl=os.sep.join([Conf.template_dir, "package_vers.tmpl"]) OurTemplate.__init__(self, file=tpl) class PackageVersWriter(PageWriter): @@ -211,7 +212,7 @@ class LetterTocTemplate(OurTemplate): for name,packagelist in collection.iteritems(): for d in packagelist.iterkeys(): self.dists[d] = True - tpl = os.sep.join([Conf.template_dir, "letter-toc.tmpl"]) + tpl = os.sep.join([Conf.template_dir, "letter_toc.tmpl"]) OurTemplate.__init__(self, file=tpl) class LetterTocWriter(PageWriter): @@ -221,6 +222,7 @@ class LetterTocWriter(PageWriter): PageWriter.__init__(self, dest, template) if __name__ == '__main__': + os.system("cheetah compile templates/skeleton") a = Archive(Conf.archive_root) # just for now until development stablizes |