From a633bcde7d6982d4ddce19104846d45ae1e2bbb1 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 21 Mar 2020 12:21:44 -0700 Subject: [PATCH] Expose should not clear session, was a test, fixes #2257, thanks Martin Mosbeck --- gluon/tools.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gluon/tools.py b/gluon/tools.py index 23c99ff1..34edca0b 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -5605,9 +5605,6 @@ class Expose(object): and file creation under `base`. """ - # why would this not be callable? but otherwise tests do not pass - if current.session and callable(current.session.forget): - current.session.forget() self.follow_symlink_out = follow_symlink_out self.base = self.normalize_path( base or os.path.join(current.request.folder, 'static'))