issue 694, thanks dlypka
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-06-05 18:07:58) dev
|
Version 2.00.0 (2012-06-05 18:18:48) dev
|
||||||
|
|||||||
+3
-5
@@ -4127,11 +4127,9 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
|
|||||||
def select(self,query,fields,attributes):
|
def select(self,query,fields,attributes):
|
||||||
(items, tablename, fields) = self.select_raw(query,fields,attributes)
|
(items, tablename, fields) = self.select_raw(query,fields,attributes)
|
||||||
# self.db['_lastsql'] = self._select(query,fields,attributes)
|
# self.db['_lastsql'] = self._select(query,fields,attributes)
|
||||||
rows = []
|
rows = [[(t=='id' and item.key().id_or_name()) or \
|
||||||
for item in items:
|
(t=='nativeRef' and item) or getattr(item, t) \
|
||||||
rows.append([
|
for t in fields] for item in items]
|
||||||
t=='id' and item.key().id_or_name() or getattr(item, t) \
|
|
||||||
for t in fields])
|
|
||||||
colnames = ['%s.%s' % (tablename, t) for t in fields]
|
colnames = ['%s.%s' % (tablename, t) for t in fields]
|
||||||
processor = attributes.get('processor',self.parse)
|
processor = attributes.get('processor',self.parse)
|
||||||
return processor(rows,fields,colnames,False)
|
return processor(rows,fields,colnames,False)
|
||||||
|
|||||||
Reference in New Issue
Block a user