--- ZSQLExtend/ZSQLExtend.py 2011/02/11 19:08:49 1.137 +++ ZSQLExtend/ZSQLExtend.py 2011/02/14 22:00:50 1.138 @@ -987,7 +987,19 @@ class ZSQLExtendFolder(Folder,Persistent except: logger("ZSQLResetConnection",logging.ERROR, '%s %s'%sys.exc_info()[:2]) + def ZSQLSimpleSearch(self,query=None,max_rows=1000000): + """new simple search""" + logging.debug("new ZSQLSimpleSearch X %s"%query) + # get Connection instance + con = self.getConnectionObj() + # call to get db object + dbc = con() + res = dbc.query(query, max_rows=max_rows) + # return result set as Result object with Brains + return Results(res) + + def oldZSQLSimpleSearch(self,query=None,max_rows=1000000): """simple search""" logging.error("ZSQLSimpleSearch X %s"%query) #print query