src/pyams_content/features/menu/interfaces.py
changeset 1110 b368b0b2c5d2
parent 1059 34e6d07ea2e9
child 1117 60f1d91b671c
--- a/src/pyams_content/features/menu/interfaces.py	Fri Nov 23 09:23:38 2018 +0100
+++ b/src/pyams_content/features/menu/interfaces.py	Fri Nov 23 12:12:52 2018 +0100
@@ -57,6 +57,9 @@
                    required=True,
                    default=True)
 
+    def is_visible(self, request=None):
+        """Is menu visible?"""
+
     title = I18nTextLineField(title=_("Menu title"),
                               description=_("Displayed menu label"),
                               required=True)
@@ -72,6 +75,9 @@
 
     pictogram = Attribute("Pictogram object reference")
 
+    def get_url(self, request=None, view_name=None):
+        """Menu menu target URL"""
+
 
 class IMenusContainer(IAssociationContainer):
     """Menus container interface"""