From a604135ed70ff858ff8a57fbe39f40efe308eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 18 Dec 2021 13:31:06 +0100 Subject: [PATCH] turn "gauche" variable into a callable, for lazy generation (#59881) --- auquotidien/modules/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auquotidien/modules/root.py b/auquotidien/modules/root.py index ffee0dc..e7bdbc2 100644 --- a/auquotidien/modules/root.py +++ b/auquotidien/modules/root.py @@ -287,7 +287,7 @@ class AlternateRootDirectory(OldRootDirectory): response.filter['auquotidien'] = True if not path or (path[0] not in ('api', 'backoffice') and not get_request().is_json()): # api & backoffice have no use for a side box - response.filter['gauche'] = self.box_side(path) + response.filter['gauche'] = lambda x: self.box_side(path) response.filter['keywords'] = template.get_current_theme().get('keywords') get_publisher().substitutions.feed(self)