Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3063:ee1962313b00 maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 05 Jan 2005 21:50:47 +0000 |
| parents | e9538444d00b |
| children | 8839a63d091e c4e76c84f43d |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Jan 04 03:29:07 2005 +0000 +++ b/roundup/cgi/templating.py Wed Jan 05 21:50:47 2005 +0000 @@ -2073,15 +2073,16 @@ # finally, the remainder of the filter args in the request 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([]): if isinstance(props[k], hyperdb.String): - l.append(s%(k, ' '.join(v))) + l.append('%s=%s'%(k, '%20'.join([q(i) for i in v]))) else: - l.append(s%(k, ','.join(v))) + l.append('%s=%s'%(k, ','.join([q(i) for i in v]))) else: - l.append('%s=%s'%(k, v)) + l.append('%s=%s'%(k, q(v))) return '%s?%s'%(url, '&'.join(l)) indexargs_href = indexargs_url
