@@ -1975,9 +1975,13 @@ def indexargs_form(self, columns=1, sort=1, group=1, filter=1,
19751975 if filter and self .filter :
19761976 l .append (s % (sc + 'filter' , ',' .join (self .filter )))
19771977 if filterspec :
1978+ props = self .client .db .getclass (self .classname ).getprops ()
19781979 for k ,v in self .filterspec .items ():
19791980 if type (v ) == type ([]):
1980- l .append (s % (k , ',' .join (v )))
1981+ if isinstance (props [k ], hyperdb .String ):
1982+ l .append (s % (k , ' ' .join (v )))
1983+ else :
1984+ l .append (s % (k , ',' .join (v )))
19811985 else :
19821986 l .append (s % (k , v ))
19831987 if self .search_text :
@@ -2023,10 +2027,14 @@ def indexargs_url(self, url, args):
20232027 l .append (sc + 'startwith=%s' % self .startwith )
20242028
20252029 # finally, the remainder of the filter args in the request
2030+ props = self .client .db .getclass (self .classname ).getprops ()
20262031 for k ,v in self .filterspec .items ():
20272032 if not args .has_key (k ):
20282033 if type (v ) == type ([]):
2029- l .append ('%s=%s' % (k , ',' .join (v )))
2034+ if isinstance (props [k ], hyperdb .String ):
2035+ l .append (s % (k , ' ' .join (v )))
2036+ else :
2037+ l .append (s % (k , ',' .join (v )))
20302038 else :
20312039 l .append ('%s=%s' % (k , v ))
20322040 return '%s?%s' % (url , '&' .join (l ))
0 commit comments