From a565fffe2fbd71391f7a81f6bad0cc8c0f3def87 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 11 Jul 2021 18:01:56 +0200 Subject: [PATCH] replaced attrdict.AttrDict by local class --- app/scodoc/sco_config.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_config.py b/app/scodoc/sco_config.py index a6eb1101a..c5a76f4e7 100644 --- a/app/scodoc/sco_config.py +++ b/app/scodoc/sco_config.py @@ -6,9 +6,15 @@ mais éditer /opt/scodoc/var/scodoc/config/scodoc_local.py """ -from attrdict import AttrDict from app.scodoc import bonus_sport + +class AttrDict(dict): + def __init__(self, *args, **kwargs): + super(AttrDict, self).__init__(*args, **kwargs) + self.__dict__ = self + + CONFIG = AttrDict() # set to 1 if you want to require INE: