summaryrefslogtreecommitdiff
path: root/patchtracker
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2008-06-25 01:15:46 +0200
committerSean Finney <seanius@debian.org>2008-06-25 01:15:46 +0200
commit8068846d7058be7742850e770808f33ff1f439a8 (patch)
treea63c6a6628f458917e5d0edb7726d615f0ad9a3f /patchtracker
parent54a7884a275b7dcf10873651f5b28886db87dd72 (diff)
downloadpatch-tracker-8068846d7058be7742850e770808f33ff1f439a8.tar.gz
fix broken downloads from patch view page
Diffstat (limited to 'patchtracker')
-rwxr-xr-xpatchtracker/Templates.py5
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)