From 5fd43a37ade93b50b8b4c9bd2161146fae50033c Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Sat, 23 Dec 2023 00:58:01 +0100 Subject: [PATCH] added 'pytz' as a dependency, for TIME_ZONE setting --- pyttman/core/internals.py | 6 ++++-- requirements.txt | Bin 856 -> 784 bytes 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyttman/core/internals.py b/pyttman/core/internals.py index 97b09ca..bc8f39e 100644 --- a/pyttman/core/internals.py +++ b/pyttman/core/internals.py @@ -64,19 +64,21 @@ def __init__(self, dictionary=None, **kwargs): self.APP_NAME: str | None = None self.LOG_FORMAT: str | None = None self.LOG_TO_STDOUT: bool = False + self.STATIC_FILES_DIR: Path | None = None + self.TIME_ZONE: pytz.timezone = None [self._set_attr(k, v) for k, v in kwargs.items() if not inspect.ismodule(v) and not inspect.isfunction(v)] def __getitem__(self, item): - return self.__dict__[item] + return self.__dict__[item] def _set_attr(self, k, v): tmp = v if isinstance(v, dict): tmp = Settings._dict_to_object(v) - + setattr(self, k, tmp) def __repr__(self): diff --git a/requirements.txt b/requirements.txt index 41e646cb69b62fe85e847b312c11b2508a57ec70..733924ce239dc244ce3123d1017f1b140afc54e3 100644 GIT binary patch delta 54 zcmcb?Hi2!zhK)DwG0K-PR592Bp%H@t5F0b-fpGytK0`4>34`I}wM?p$zcHyywquq8 E0HVtc^#A|> delta 120 zcmbQhc7tug2E|l{B8C!%OolWdwgo~X1_K~AV$fr-1Y#owlZ`8%GEUycBqLwMkjhZV yPzofAfjWwzszGWjfGQ0qpJmdNF9n*G1B96jNesqd6^39_%s?s_j3<9&k_P}Nn;2LC