--- ZSQLExtend/ZSQLExtend.py 2005/11/08 13:37:32 1.71 +++ ZSQLExtend/ZSQLExtend.py 2005/11/09 10:47:09 1.72 @@ -98,7 +98,7 @@ class ZSQLExtendFolder(Folder,Persistent """erzeuge index aus feld""" index={} founds=self.ZSQLSimpleSearch("""SELECT %s,oid FROM %s LIMIT 2000"""%(field,table)) - print len(founds) + for found in founds: tmp=getattr(found,field,None) if tmp: @@ -812,7 +812,7 @@ class ZSQLExtendFolder(Folder,Persistent #check for op splitted=qs.split(",") - print splitted + if tableExt: table=tableExt @@ -914,7 +914,7 @@ class ZSQLExtendFolder(Folder,Persistent op="ct" namealt=name name="LOWER("+punktsplit[1]+")" - print "XX",op + if op=="ct": tmp=(name+" LIKE "+sql_quote("%"+value+"%")) elif op=="gt": @@ -948,9 +948,9 @@ class ZSQLExtendFolder(Folder,Persistent op="all" - print punktsplit + searchTmp="""%s in (select %s from %s where %s)"""%(punktsplit[3],punktsplit[2],punktsplit[0],tmp) - print "got",searchTmp + queryTemplate.append(searchTmp) elif (not name[0]==iCT) and (not len(value)==0): @@ -1031,7 +1031,7 @@ class ZSQLExtendFolder(Folder,Persistent #print "QE",table #print (select,table,where,sort,maxstr,skip) query="SELECT %s FROM %s %s %s %s %s"%(select,table,where,sort,maxstr,skip) - print query + if not nostore=="yes": self.REQUEST.SESSION['qs']=opfields