diff --git a/VERSION b/VERSION index 95110752..906d58a1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-05 18:07:58) dev +Version 2.00.0 (2012-06-05 18:18:48) dev diff --git a/gluon/dal.py b/gluon/dal.py index 469a0144..e4018e3d 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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)