From 42de43d052c2c64f52cdcde7db50d4e900ecb12f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 14 Dec 2013 20:03:35 -0600 Subject: [PATCH] fixed 1814:session.connect: parameter migrate=False has no effect, thanks lucmurer --- VERSION | 2 +- gluon/globals.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1b5a63e2..b276869c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2013.12.11.20.35.40 +Version 2.8.2-stable+timestamp.2013.12.14.20.02.42 diff --git a/gluon/globals.py b/gluon/globals.py index 58b2c0de..08e09f64 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -816,7 +816,10 @@ class Session(Storage): # if on GAE tickets go also in DB if settings.global_settings.web2py_runtime_gae: request.tickets_db = db - table_migrate = (masterapp == request.application) + if masterapp == request.application: + table_migrate = migrate + else: + table_migrate = False tname = tablename + '_' + masterapp table = db.get(tname, None) Field = db.Field