--- ZSQLExtend/ZSQLExtend.py 2007/04/05 14:20:08 1.110 +++ ZSQLExtend/ZSQLExtend.py 2007/04/18 15:09:52 1.111 @@ -829,6 +829,7 @@ class ZSQLExtendFolder(Folder,Persistent if x: value=x else: + value=str(argTmp[a]) qs.append(aFiltered+"="+urllib.quote(value)) @@ -858,7 +859,7 @@ class ZSQLExtendFolder(Folder,Persistent def ZSQLSimpleSearch(self,query=None,max_rows=1000000): """simple search""" - #logging.error("ZSQLSimpleSearch X %s"%query) + logging.error("ZSQLSimpleSearch X %s"%query) #print query if not query: query=self.query @@ -1021,7 +1022,7 @@ class ZSQLExtendFolder(Folder,Persistent table=urllib.unquote(value) elif name=="-identify": identify=urllib.unquote(value) - identify=identify.split("=")[0]+"="+sql_quote(identify.split("=")[1]) + identify="lower("+identify.split("=")[0]+")="+sql_quote(identify.split("=")[1].lower()) elif name=="-format": format=urllib.unquote(value) #elif (not (name[0]=="-" or name[0]=="_")) and (not len(value)==0): @@ -1132,11 +1133,11 @@ class ZSQLExtendFolder(Folder,Persistent #print "calling Query with",repr(NoQuery) - logging.error("blo") + ret=self.parseQueryString(qs,"-",select=select,storemax="yes",storename=storename,tableExt=tableExt,NoQuery=NoQuery,NoLimit=NoLimit,restrictField=restrictField,restrictConnect=restrictConnect,filter=filter) #print self.REQUEST.SESSION["foundCount"] - logging.error("BlAAAAAAAAAA %s"%ret) + return ret