From 936c2a83dda4ecc3b6db8f3ee81a43ff4340de12 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 15 Jan 2017 13:23:22 +0100 Subject: Modules: putting color everywhere! (refs #3408) --- ishtar_common/menu_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/menu_base.py') 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 -- cgit v1.2.3