comparison roundup/cgi/templating.py @ 3060:53d1d4e2015c

index args URL generation broken in .10 [SF#1096027]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 05 Jan 2005 21:47:13 +0000
parents 393f6ab17c07
children 8839a63d091e c4e76c84f43d
comparison
equal deleted inserted replaced
3059:213468d6e7c9 3060:53d1d4e2015c
2071 if not specials.has_key('startwith'): 2071 if not specials.has_key('startwith'):
2072 l.append(sc+'startwith=%s'%self.startwith) 2072 l.append(sc+'startwith=%s'%self.startwith)
2073 2073
2074 # finally, the remainder of the filter args in the request 2074 # finally, the remainder of the filter args in the request
2075 props = self.client.db.getclass(self.classname).getprops() 2075 props = self.client.db.getclass(self.classname).getprops()
2076 q = urllib.quote
2076 for k,v in self.filterspec.items(): 2077 for k,v in self.filterspec.items():
2077 if not args.has_key(k): 2078 if not args.has_key(k):
2078 if type(v) == type([]): 2079 if type(v) == type([]):
2079 if isinstance(props[k], hyperdb.String): 2080 if isinstance(props[k], hyperdb.String):
2080 l.append(s%(k, ' '.join(v))) 2081 l.append('%s=%s'%(k, '%20'.join([q(i) for i in v])))
2081 else: 2082 else:
2082 l.append(s%(k, ','.join(v))) 2083 l.append('%s=%s'%(k, ','.join([q(i) for i in v])))
2083 else: 2084 else:
2084 l.append('%s=%s'%(k, v)) 2085 l.append('%s=%s'%(k, q(v)))
2085 return '%s?%s'%(url, '&'.join(l)) 2086 return '%s?%s'%(url, '&'.join(l))
2086 indexargs_href = indexargs_url 2087 indexargs_href = indexargs_url
2087 2088
2088 def base_javascript(self): 2089 def base_javascript(self):
2089 return ''' 2090 return '''

Roundup Issue Tracker: http://roundup-tracker.org/