fixed issue 1143, grid/smartgrid GAE improvements, thanks Howesc

This commit is contained in:
mdipierro
2012-11-08 10:05:46 -06:00
parent ec429af686
commit bce7bd7fa7
3 changed files with 63 additions and 17 deletions
+2 -2
View File
@@ -4588,7 +4588,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
processor = attributes.get('processor',self.parse)
return processor(rows,fields,colnames,False)
def count(self,query,distinct=None):
def count(self,query,distinct=None,limit=None):
if distinct:
raise RuntimeError("COUNT DISTINCT not supported")
(items, tablename, fields) = self.select_raw(query)
@@ -4596,7 +4596,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
try:
return len(items)
except TypeError:
return items.count(limit=None)
return items.count(limit=limit)
def delete(self,tablename, query):
"""