From a4416bd11f94bc05373c4463ac3f547932c0b53d Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 17 Dec 2013 16:40:44 -0600 Subject: [PATCH] fixed issue 1819:Datastore reconnect problem, thanks Alan --- VERSION | 2 +- gluon/dal.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index ae14e219..946fe36c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2013.12.16.21.55.21 +Version 2.8.2-stable+timestamp.2013.12.17.16.39.21 diff --git a/gluon/dal.py b/gluon/dal.py index 47be7dbc..3d7b33d2 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -703,7 +703,7 @@ class BaseAdapter(ConnectionPool): can_select_for_update = True dbpath = None folder = None - connector = lambda dbpath, adapter_args: None # __init__ should override this + connector = lambda *args, **kwargs: None # __init__ should override this TRUE = 'T' FALSE = 'F' @@ -4809,6 +4809,8 @@ class GoogleDatastoreAdapter(NoSQLAdapter): uploads_in_blob = True types = {} + # reconnect is not required for Datastore dbs + reconnect = lambda *args, **kwargs: None def file_exists(self, filename): pass def file_open(self, filename, mode='rb', lock=True): pass