diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-28 16:01:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-28 16:06:35 +0200 |
commit | 48426e9321849d0e5f1d736561111d54bec0a5cc (patch) | |
tree | 00f87faeb9276b52cda3671529dfc1b23c9cd401 /ishtar_common/utils.py | |
parent | 9eac27854a2aadf839654adbd6e43e5c9d8ad7cf (diff) | |
download | Ishtar-48426e9321849d0e5f1d736561111d54bec0a5cc.tar.bz2 Ishtar-48426e9321849d0e5f1d736561111d54bec0a5cc.zip |
✨ Archaeological files templates: add fields for preventive document rendering
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 9aee643c4..bca7ce181 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -108,6 +108,15 @@ def debug_line_no(): return currentframe().f_back.f_lineno +class InlineClass: + """ + Dynamic class used in templates + """ + def __init__(self, dct): + for k in dct: + setattr(self, k, dct[k]) + + def fake_task(*args): def fake(func): return func |