Reified renderer settings
authorThierry Florac <thierry.florac@onf.fr>
Tue, 06 Mar 2018 16:55:05 +0100
changeset 444 a20522cd41f6
parent 443 326adf3362d8
child 445 ad73bd24079f
Reified renderer settings
src/pyams_content/features/renderer/zmi/__init__.py
--- a/src/pyams_content/features/renderer/zmi/__init__.py	Tue Mar 06 15:04:55 2018 +0100
+++ b/src/pyams_content/features/renderer/zmi/__init__.py	Tue Mar 06 16:55:05 2018 +0100
@@ -28,6 +28,7 @@
 from pyams_utils.adapter import ContextRequestAdapter, adapter_config
 from pyams_viewlet.viewlet import BaseContentProvider
 from pyams_zmi.form import AdminDialogEditForm
+from pyramid.decorator import reify
 from pyramid.view import view_config
 from z3c.form import field
 from zope.interface import implementer, Interface
@@ -76,7 +77,7 @@
     context_attrs = ()
     i18n_context_attrs = ()
 
-    @property
+    @reify
     def settings(self):
         if self.settings_interface is None:
             return None