Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3104:97aec6907e69
merge from 0.7
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 13 Jan 2005 05:17:17 +0000 |
| parents | c4e76c84f43d |
| children | 460eb0209a9e |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Thu Jan 13 05:05:26 2005 +0000 +++ b/roundup/cgi/templating.py Thu Jan 13 05:17:17 2005 +0000 @@ -2038,6 +2038,7 @@ def indexargs_url(self, url, args): ''' Embed the current index args in a URL ''' + q = urllib.quote sc = self.special_char l = ['%s=%s'%(k,v) for k,v in args.items()] @@ -2065,7 +2066,7 @@ if self.filter and not specials.has_key('filter'): l.append(sc+'filter=%s'%(','.join(self.filter))) if self.search_text and not specials.has_key('search_text'): - l.append(sc+'search_text=%s'%self.search_text) + l.append(sc+'search_text=%s'%q(self.search_text)) if not specials.has_key('pagesize'): l.append(sc+'pagesize=%s'%self.pagesize) if not specials.has_key('startwith'): @@ -2074,7 +2075,6 @@ # finally, the remainder of the filter args in the request if self.classname and self.filterspec: props = self.client.db.getclass(self.classname).getprops() - q = urllib.quote for k,v in self.filterspec.items(): if not args.has_key(k): if type(v) == type([]):
