issue 694, thanks dlypka

This commit is contained in:
Massimo DiPierro
2012-06-05 18:18:50 -05:00
parent e6e542b14f
commit 95d01663a7
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -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
View File
@@ -4127,11 +4127,9 @@ class GoogleDatastoreAdapter(NoSQLAdapter):
def select(self,query,fields,attributes):
(items, tablename, fields) = self.select_raw(query,fields,attributes)
# self.db['_lastsql'] = self._select(query,fields,attributes)
rows = []
for item in items:
rows.append([
t=='id' and item.key().id_or_name() or getattr(item, t) \
for t in fields])
rows = [[(t=='id' and item.key().id_or_name()) or \
(t=='nativeRef' and item) or getattr(item, t) \
for t in fields] for item in items]
colnames = ['%s.%s' % (tablename, t) for t in fields]
processor = attributes.get('processor',self.parse)
return processor(rows,fields,colnames,False)