--- ZSQLExtend/ZSQLExtend.py 2004/09/27 20:43:58 1.36 +++ ZSQLExtend/ZSQLExtend.py 2004/09/27 20:48:54 1.38 @@ -13,11 +13,11 @@ from Products.PageTemplates.PageTemplate from Products.ZSQLMethods.SQL import SQLConnectionIDs import Shared.DC.ZRDB.DA -def sql_quote(self, v): +def sql_quote(v): # quote dictionary quote_dict = {"\'": "''", "\\": "\\\\"} for dkey in quote_dict.keys(): - if find(v, dkey) >= 0: + if string.find(v, dkey) >= 0: v=join(split(v,dkey),quote_dict[dkey]) return "'%s'" % v