replaced attrdict.AttrDict by local class

This commit is contained in:
Emmanuel Viennet 2021-07-11 18:01:56 +02:00
parent a3ede77f2c
commit a565fffe2f

View File

@ -6,9 +6,15 @@
mais éditer /opt/scodoc/var/scodoc/config/scodoc_local.py mais éditer /opt/scodoc/var/scodoc/config/scodoc_local.py
""" """
from attrdict import AttrDict
from app.scodoc import bonus_sport 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() CONFIG = AttrDict()
# set to 1 if you want to require INE: # set to 1 if you want to require INE: