diff options
author | Sean Finney <seanius@debian.org> | 2008-09-04 23:33:00 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-09-04 23:33:00 +0200 |
commit | 01d84d428719138a5fb8e3020de53c44080ba1bc (patch) | |
tree | 35fa1f3f6583d29fca0be517b8109f1ed35589b4 /pagehandler.py | |
parent | d8bdde7424a75caed7b23b7f8201fd92bd7ac3e9 (diff) | |
download | patch-tracker-01d84d428719138a5fb8e3020de53c44080ba1bc.tar.gz |
better output for searches, email query fix
Diffstat (limited to 'pagehandler.py')
-rwxr-xr-x | pagehandler.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pagehandler.py b/pagehandler.py index ffb5a6c..639ac04 100755 --- a/pagehandler.py +++ b/pagehandler.py @@ -89,7 +89,8 @@ class PackageCmd: print "Content-Type: text/html\n\n" # if there is no match, or if multiple versions were returned if not p or len(set(map(lambda x: x.version, p.values()))) > 1: - print SearchResultsTemplate(self.name, self.toc) + querydesc = "package name contains" + print SearchResultsTemplate(self.name, querydesc, self.toc) else: print PackageVersTemplate(p.popitem()[1]) @@ -114,11 +115,11 @@ class MaintCmd: else: self.db = PatchTrackerDB() self.email = args[0] - self.toc = self.db.findCollection(email="%"+self.email+"%") + self.toc = self.db.findCollection(email=self.email) def output(self): print "Content-Type: text/html\n\n" - print SearchResultsTemplate(self.email, self.toc) + print SearchResultsTemplate(self.email, "maintainer email", self.toc) class JumpCmd: def __init__(self): |