From c93ce5dbab7a384a7dbfc6cda41be787940f7fe8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 10 Jan 2014 08:28:09 -0600 Subject: [PATCH] reverted latest patch --- gluon/dal.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gluon/dal.py b/gluon/dal.py index a36bca93..38b80283 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -5297,12 +5297,10 @@ class GoogleDatastoreAdapter(NoSQLAdapter): LOGGER.info(str(counter)) return counter - def _insert(self, table, fields): - return dict((f.name,self.represent(v,f.type)) for f,v in fields) - def insert(self,table,fields): + dfields=dict((f.name,self.represent(v,f.type)) for f,v in fields) # table._db['_lastsql'] = self._insert(table,fields) - tmp = table._tableobj(**self._insert(table, fields)) + tmp = table._tableobj(**dfields) tmp.put() key = tmp.key if self.use_ndb else tmp.key() rid = Reference(key.id())