version 1.110, 2007/04/05 14:20:08
|
version 1.111, 2007/04/18 15:09:52
|
Line 829 class ZSQLExtendFolder(Folder,Persistent
|
Line 829 class ZSQLExtendFolder(Folder,Persistent
|
if x: |
if x: |
value=x |
value=x |
else: |
else: |
|
|
value=str(argTmp[a]) |
value=str(argTmp[a]) |
qs.append(aFiltered+"="+urllib.quote(value)) |
qs.append(aFiltered+"="+urllib.quote(value)) |
|
|
Line 858 class ZSQLExtendFolder(Folder,Persistent
|
Line 859 class ZSQLExtendFolder(Folder,Persistent
|
|
|
def ZSQLSimpleSearch(self,query=None,max_rows=1000000): |
def ZSQLSimpleSearch(self,query=None,max_rows=1000000): |
"""simple search""" |
"""simple search""" |
#logging.error("ZSQLSimpleSearch X %s"%query) |
logging.error("ZSQLSimpleSearch X %s"%query) |
#print query |
#print query |
if not query: |
if not query: |
query=self.query |
query=self.query |
Line 1021 class ZSQLExtendFolder(Folder,Persistent
|
Line 1022 class ZSQLExtendFolder(Folder,Persistent
|
table=urllib.unquote(value) |
table=urllib.unquote(value) |
elif name=="-identify": |
elif name=="-identify": |
identify=urllib.unquote(value) |
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": |
elif name=="-format": |
format=urllib.unquote(value) |
format=urllib.unquote(value) |
#elif (not (name[0]=="-" or name[0]=="_")) and (not len(value)==0): |
#elif (not (name[0]=="-" or name[0]=="_")) and (not len(value)==0): |
Line 1132 class ZSQLExtendFolder(Folder,Persistent
|
Line 1133 class ZSQLExtendFolder(Folder,Persistent
|
|
|
|
|
#print "calling Query with",repr(NoQuery) |
#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) |
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"] |
#print self.REQUEST.SESSION["foundCount"] |
|
|
logging.error("BlAAAAAAAAAA %s"%ret) |
|
|
|
return ret |
return ret |
|
|