src/pyams_content/shared/common/portlet/content/__init__.py
changeset 691 773429b4a3ed
parent 684 8c9e0b4b8430
--- a/src/pyams_content/shared/common/portlet/content/__init__.py	Fri Jun 15 11:05:24 2018 +0200
+++ b/src/pyams_content/shared/common/portlet/content/__init__.py	Fri Jun 15 14:08:58 2018 +0200
@@ -21,6 +21,7 @@
 
 # import packages
 from pyams_portal.portlet import PortletSettings, portlet_config, Portlet
+from pyams_utils.factory import factory_config
 from zope.interface import implementer
 
 from pyams_content import _
@@ -30,6 +31,7 @@
 
 
 @implementer(ISharedContentPortletSettings)
+@factory_config(provided=ISharedContentPortletSettings)
 class SharedContentPortletSettings(PortletSettings):
     """Shared content portlet persistent settings"""
 
@@ -41,4 +43,4 @@
     name = SHARED_CONTENT_PORTLET_NAME
     label = _("Context content")
 
-    settings_class = SharedContentPortletSettings
+    settings_factory = ISharedContentPortletSettings