# HG changeset patch # User Thierry Florac # Date 1531409808 -7200 # Node ID d11056520bf52232dff8ca6199a84174910a24da # Parent fcca5c883a43dfff21215762458002be25217b76 Updated adapters layer interface diff -r fcca5c883a43 -r d11056520bf5 src/pyams_default_theme/shared/common/__init__.py --- a/src/pyams_default_theme/shared/common/__init__.py Thu Jul 12 17:08:14 2018 +0200 +++ b/src/pyams_default_theme/shared/common/__init__.py Thu Jul 12 17:36:48 2018 +0200 @@ -22,7 +22,7 @@ from pyams_default_theme.interfaces import IContentNavigationTitle, IContentTag, IContentDate, \ IContentNavigationIllustration from pyams_i18n.interfaces import II18n -from pyams_skin.layer import IPyAMSUserLayer +from pyams_skin.layer import IPyAMSLayer from pyams_utils.interfaces.tales import ITALESExtension from pyams_workflow.interfaces import IWorkflowPublicationInfo @@ -32,7 +32,7 @@ from zope.interface import Interface -@adapter_config(context=(IBaseContent, IPyAMSUserLayer), provides=IContentNavigationTitle) +@adapter_config(context=(IBaseContent, IPyAMSLayer), provides=IContentNavigationTitle) def shared_content_navigation_title(context, request): """Default content navigation title adapter""" return II18n(context).query_attribute('title', request=request) @@ -50,7 +50,7 @@ return self.request.registry.queryMultiAdapter((context, self.request), IContentNavigationTitle) -@adapter_config(context=(IWfSharedContent, IPyAMSUserLayer), provides=IContentTag) +@adapter_config(context=(IWfSharedContent, IPyAMSLayer), provides=IContentTag) def shared_content_tag_adapter(context, request): """Default shared content tag adapter""" translate = request.localizer.translate @@ -69,7 +69,7 @@ return self.request.registry.queryMultiAdapter((context, self.request), IContentTag) -@adapter_config(context=(IWfSharedContent, IPyAMSUserLayer), provides=IContentDate) +@adapter_config(context=(IWfSharedContent, IPyAMSLayer), provides=IContentDate) def shared_content_date_adapter(context, request): """Default shared content date adapter""" publication_info = IWorkflowPublicationInfo(context, None) @@ -90,7 +90,7 @@ return self.request.registry.queryMultiAdapter((context, self.request), IContentDate) -@adapter_config(context=(IBaseContent, IPyAMSUserLayer), provides=IContentNavigationIllustration) +@adapter_config(context=(IBaseContent, IPyAMSLayer), provides=IContentNavigationIllustration) def base_content_navigation_illustration_adapter(context, request): """Default content navigation illustration adapter""" illustration = ILinkIllustration(context, None)