src/pyams_portal/portlets/image/__init__.py
changeset 110 0560f0ceb80f
parent 89 9a580d85a427
--- a/src/pyams_portal/portlets/image/__init__.py	Thu Jun 14 17:35:36 2018 +0200
+++ b/src/pyams_portal/portlets/image/__init__.py	Fri Jun 15 14:05:17 2018 +0200
@@ -23,6 +23,7 @@
 # import packages
 from pyams_file.property import FileProperty
 from pyams_portal.portlet import portlet_config, Portlet, PortletSettings
+from pyams_utils.factory import factory_config
 from zope.interface import implementer, alsoProvides
 
 from pyams_portal import _
@@ -32,6 +33,7 @@
 
 
 @implementer(IImagePortletSettings)
+@factory_config(provided=IImagePortletSettings)
 class ImagePortletSettings(PortletSettings):
     """Image portlet settings"""
 
@@ -58,4 +60,4 @@
     toolbar_image = None
     toolbar_css_class = 'fa fa-fw fa-2x fa-picture-o'
 
-    settings_class = ImagePortletSettings
+    settings_factory = IImagePortletSettings