@@ -2020,9 +2020,13 @@ def indexargs_form(self, columns=1, sort=1, group=1, filter=1,
20202020 if filter and self .filter :
20212021 l .append (s % (sc + 'filter' , ',' .join (self .filter )))
20222022 if filterspec :
2023+ props = self .client .db .getclass (self .classname ).getprops ()
20232024 for k ,v in self .filterspec .items ():
20242025 if type (v ) == type ([]):
2025- l .append (s % (k , ',' .join (v )))
2026+ if isinstance (props [k ], hyperdb .String ):
2027+ l .append (s % (k , ' ' .join (v )))
2028+ else :
2029+ l .append (s % (k , ',' .join (v )))
20262030 else :
20272031 l .append (s % (k , v ))
20282032 if self .search_text :
@@ -2068,10 +2072,14 @@ def indexargs_url(self, url, args):
20682072 l .append (sc + 'startwith=%s' % self .startwith )
20692073
20702074 # finally, the remainder of the filter args in the request
2075+ props = self .client .db .getclass (self .classname ).getprops ()
20712076 for k ,v in self .filterspec .items ():
20722077 if not args .has_key (k ):
20732078 if type (v ) == type ([]):
2074- l .append ('%s=%s' % (k , ',' .join (v )))
2079+ if isinstance (props [k ], hyperdb .String ):
2080+ l .append (s % (k , ' ' .join (v )))
2081+ else :
2082+ l .append (s % (k , ',' .join (v )))
20752083 else :
20762084 l .append ('%s=%s' % (k , v ))
20772085 return '%s?%s' % (url , '&' .join (l ))
0 commit comments