diff options
author | Sean Finney <seanius@debian.org> | 2008-06-25 01:15:46 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-06-25 01:15:46 +0200 |
commit | 8068846d7058be7742850e770808f33ff1f439a8 (patch) | |
tree | a63c6a6628f458917e5d0edb7726d615f0ad9a3f /patchtracker | |
parent | 54a7884a275b7dcf10873651f5b28886db87dd72 (diff) | |
download | patch-tracker-8068846d7058be7742850e770808f33ff1f439a8.tar.gz |
fix broken downloads from patch view page
Diffstat (limited to 'patchtracker')
-rwxr-xr-x | patchtracker/Templates.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/patchtracker/Templates.py b/patchtracker/Templates.py index b4c84c6..ba9764c 100755 --- a/patchtracker/Templates.py +++ b/patchtracker/Templates.py @@ -53,8 +53,9 @@ class ErrorTemplate(OurTemplate): OurTemplate.__init__(self, file=tpl, searchList={'error':msg}) class PatchTemplate(OurTemplate): - def __init__(self, pkg=None, vers=None, name=None, patch=None): + def __init__(self, pkg=None, vers=None, name=None, patch=None,patchtype=None): tpl = os.sep.join([Conf.template_dir, "patch_view.tmpl"]) - sl = {'package':pkg, 'version':vers, 'name':name, 'patch':patch} + sl = {'package':pkg, 'version':vers, 'name':name, + 'patch':patch, 'patchtype':patchtype} OurTemplate.__init__(self, file=tpl, searchList=sl) |