summaryrefslogtreecommitdiff
path: root/ishtar_common/menu_base.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-20 20:09:06 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-20 20:09:06 +0100
commitd26217d09080ef93fe0b36c3543a266d7a04c688 (patch)
tree99faaf3ec3a2d6da7d265995419dc6af45a69fbe /ishtar_common/menu_base.py
parent4abb5ff78620c096ab4238535c8e4b22291a2cb1 (diff)
parentac595e9aa13d27fb15e70eb1f6e2d11f928a4c4a (diff)
downloadIshtar-d26217d09080ef93fe0b36c3543a266d7a04c688.tar.bz2
Ishtar-d26217d09080ef93fe0b36c3543a266d7a04c688.zip
Merge branch 'v0.9' into wheezy
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