From 56b7635d999ef2efce80639362c2113b1cd786cc Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Sat, 6 Mar 2021 10:15:30 +0100 Subject: [PATCH] [moinmoin] Missing import Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- roles/moinmoin/templates/moin/mywiki.py.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/moinmoin/templates/moin/mywiki.py.j2 b/roles/moinmoin/templates/moin/mywiki.py.j2 index d4c03338..397430b9 100644 --- a/roles/moinmoin/templates/moin/mywiki.py.j2 +++ b/roles/moinmoin/templates/moin/mywiki.py.j2 @@ -15,6 +15,10 @@ the farm's common settings. # we import the FarmConfig class for common defaults of our wikis: from farmconfig import FarmConfig +{% if not moinmoin.main -%} +# we import config to disable the account creation at the bottom of this file +from Moinmoin import config +{% endif -%} # now we subclass that config (inherit from it) and change what's different: class Config(FarmConfig): -- GitLab