summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
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
commit48426e9321849d0e5f1d736561111d54bec0a5cc (patch)
tree00f87faeb9276b52cda3671529dfc1b23c9cd401 /ishtar_common
parent9eac27854a2aadf839654adbd6e43e5c9d8ad7cf (diff)
downloadIshtar-48426e9321849d0e5f1d736561111d54bec0a5cc.tar.bz2
Ishtar-48426e9321849d0e5f1d736561111d54bec0a5cc.zip
✨ Archaeological files templates: add fields for preventive document rendering
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/utils.py9
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