--- ZSQLExtend/ZSQLExtend.py 2005/11/08 13:37:32 1.71 +++ ZSQLExtend/ZSQLExtend.py 2005/11/25 12:14:13 1.75 @@ -67,6 +67,11 @@ class ZSQLExtendFolder(Folder,Persistent """Folder""" meta_type="ZSQLExtendFolder" + def ZSQLQuote(self,str): + """quote str for sql""" + return sql_quote(str) + + def importXMLFile(self,table,containerTagName,file,identify=None,RESPONSE=None): #TODO: finish importXMLFile ''' @@ -98,7 +103,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: @@ -202,6 +207,8 @@ class ZSQLExtendFolder(Folder,Persistent def formatAscii(self,str,url=None): """ersetze ascii umbrueche durch
""" #url=None + str=str.rstrip().lstrip() + if url and str: retStr="" @@ -351,11 +358,12 @@ class ZSQLExtendFolder(Folder,Persistent ret="""