summaryrefslogtreecommitdiff
path: root/ishtar_common/menu_base.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-15 13:23:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-15 13:23:22 +0100
commit936c2a83dda4ecc3b6db8f3ee81a43ff4340de12 (patch)
treec292132e73ef137b7f8cb9c60d836ede22fb5053 /ishtar_common/menu_base.py
parent92073870e0090a12272bdd832b522c2516d760ad (diff)
downloadIshtar-936c2a83dda4ecc3b6db8f3ee81a43ff4340de12.tar.bz2
Ishtar-936c2a83dda4ecc3b6db8f3ee81a43ff4340de12.zip
Modules: putting color everywhere! (refs #3408)
Diffstat (limited to 'ishtar_common/menu_base.py')
-rw-r--r--ishtar_common/menu_base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/menu_base.py b/ishtar_common/menu_base.py
index 64dfbae95..0117b375d 100644
--- a/ishtar_common/menu_base.py
+++ b/ishtar_common/menu_base.py
@@ -21,13 +21,14 @@ from ishtar_common.models import get_current_profile
class SectionItem:
- def __init__(self, idx, label, childs=[], profile_restriction=None):
+ def __init__(self, idx, label, childs=[], profile_restriction=None, css=''):
self.idx = idx
self.label = label
self.childs = childs
self.available = False
self.items = {}
self.profile_restriction = profile_restriction
+ self.css = css
def check_profile_restriction(self):
if self.profile_restriction:
@@ -63,13 +64,14 @@ class SectionItem:
class MenuItem:
def __init__(self, idx, label, model=None, access_controls=[],
- profile_restriction=None):
+ profile_restriction=None, css=''):
self.idx = idx
self.label = label
self.model = model
self.access_controls = access_controls
self.available = False
self.profile_restriction = profile_restriction
+ self.css = css
if not self.check_profile_restriction():
return False