--- 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"""