diff --git a/VERSION b/VERSION index 648d3016..c104fc75 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.7-stable+timestamp.2014.09.05.16.47.13 +Version 2.9.7-stable+timestamp.2014.09.06.18.10.46 diff --git a/gluon/fileutils.py b/gluon/fileutils.py index 46f4611c..121ad99e 100644 --- a/gluon/fileutils.py +++ b/gluon/fileutils.py @@ -20,7 +20,7 @@ import datetime import logging from http import HTTP from gzip import open as gzopen - +from recfile import generate __all__ = [ 'parse_version', @@ -400,6 +400,8 @@ def get_session(request, other_application='admin'): session_id = request.cookies['session_id_' + other_application].value session_filename = os.path.join( up(request.folder), other_application, 'sessions', session_id) + if not os.path.exists(session_filename): + session_filename = generate(session_filename) osession = storage.load_storage(session_filename) except Exception, e: osession = storage.Storage()