src/pyams_content/features/menu/portlet/navigation/double.py
changeset 691 773429b4a3ed
parent 689 029787887199
child 859 5139e1da058e
--- a/src/pyams_content/features/menu/portlet/navigation/double.py	Fri Jun 15 11:05:24 2018 +0200
+++ b/src/pyams_content/features/menu/portlet/navigation/double.py	Fri Jun 15 14:08:58 2018 +0200
@@ -28,6 +28,7 @@
 from pyams_content.features.menu import MenusContainer
 from pyams_portal.portlet import PortletSettings, portlet_config, Portlet
 from pyams_utils.adapter import get_annotation_adapter, adapter_config
+from pyams_utils.factory import factory_config
 from pyramid.events import subscriber
 from zope.interface import implementer, alsoProvides
 from zope.schema.fieldproperty import FieldProperty
@@ -40,6 +41,7 @@
 
 
 @implementer(IDoubleNavigationPortletSettings, IMenusContainerTarget)
+@factory_config(provided=IDoubleNavigationPortletSettings)
 class DoubleNavigationPortletSettings(PortletSettings):
     """Double navigation portlet settings"""
 
@@ -65,7 +67,9 @@
     name = DOUBLE_NAVIGATION_PORTLET_NAME
     label = _("Double navigation")
 
-    settings_class = DoubleNavigationPortletSettings
+    toolbar_css_class = 'fa fa-fw fa-2x fa-list-alt'
+
+    settings_factory = IDoubleNavigationPortletSettings
 
 
 @subscriber(IObjectAddedEvent, parent_selector=IDoubleNavigationMenusContainer)