From: kedder Date: Thu, 9 Jan 2003 14:41:20 +0000 (+0000) Subject: display of saved queries is now performed correctly X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=012bd68f1f2b7da04d39ffb264b435da23298198;p=roundup.git display of saved queries is now performed correctly git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1428 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 03a9064..7a13ff7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,7 @@ are given with the most recent entry first. - fixed searching on date / interval fields (sf bug 658157) - fixed form elements names in search form to allow grouping and sorting on "creation" field +- display of saved queries is now performed correctly 2002-12-11 0.5.3 - added mention of how to give users multiple Roles diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 7e6f36e..d8ed0fc 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -1459,7 +1459,10 @@ env: %(env)s l.append(s%(':filter', ','.join(self.filter))) if filterspec: for k,v in self.filterspec.items(): - l.append(s%(k, ','.join(v))) + if type(v) == type([]): + l.append(s%(k, ','.join(v))) + else: + l.append(s%(k, v)) if self.search_text: l.append(s%(':search_text', self.search_text)) l.append(s%(':pagesize', self.pagesize)) @@ -1487,7 +1490,10 @@ env: %(env)s l.append(':filter=%s'%(','.join(self.filter))) for k,v in self.filterspec.items(): if not args.has_key(k): - l.append('%s=%s'%(k, ','.join(v))) + if type(v) == type([]): + l.append('%s=%s'%(k, ','.join(v))) + else: + l.append('%s=%s'%(k, v)) if self.search_text and not args.has_key(':search_text'): l.append(':search_text=%s'%self.search_text) if not args.has_key(':pagesize'):