summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
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