diff -r d9f37252a42d -r 9a3e4f9cc8f5 src/pyams_content/shared/view/reference.py --- a/src/pyams_content/shared/view/reference.py Fri Jan 26 16:42:19 2018 +0100 +++ b/src/pyams_content/shared/view/reference.py Fri Jan 26 16:43:14 2018 +0100 @@ -18,8 +18,8 @@ # import interfaces from hypatia.interfaces import ICatalog -from pyams_content.shared.view.interfaces import IViewInternalReferencesSettings, IWfView, VIEW_REFERENCES_SETTINGS_KEY, \ - IViewQueryFilterExtension, ALWAYS_REFERENCE_MODE +from pyams_content.shared.view.interfaces import IWfView, IViewSettings, IViewInternalReferencesSettings, \ + IViewQueryFilterExtension, VIEW_REFERENCES_SETTINGS_KEY, ALWAYS_REFERENCE_MODE from zope.annotation.interfaces import IAnnotations # import packages @@ -44,8 +44,13 @@ references = FieldProperty(IViewInternalReferencesSettings['references']) references_mode = FieldProperty(IViewInternalReferencesSettings['references_mode']) + @property + def is_using_context(self): + return False + @adapter_config(context=IWfView, provides=IViewInternalReferencesSettings) +@adapter_config(name='references', context=IWfView, provides=IViewSettings) def ViewInternalReferencesSettingsFactory(view): """View internal references settings factory""" annotations = IAnnotations(view)