# HG changeset patch # User Thierry Florac # Date 1531408094 -7200 # Node ID fcca5c883a43dfff21215762458002be25217b76 # Parent 62c88c2ad06a88eec01fe75d9705ba499f671c6c Updated TALES extensions layer interface diff -r 62c88c2ad06a -r fcca5c883a43 src/pyams_default_theme/shared/common/__init__.py --- a/src/pyams_default_theme/shared/common/__init__.py Thu Jul 12 11:48:49 2018 +0200 +++ b/src/pyams_default_theme/shared/common/__init__.py Thu Jul 12 17:08:14 2018 +0200 @@ -39,7 +39,7 @@ @adapter_config(name='pyams_title', - context=(Interface, IPyAMSUserLayer, Interface), + context=(Interface, Interface, Interface), provides=ITALESExtension) class PyAMSContentTitleTALESExtension(ContextRequestViewAdapter): """PyAMS content title TALES extension""" @@ -58,7 +58,7 @@ @adapter_config(name='pyams_tag', - context=(Interface, IPyAMSUserLayer, Interface), + context=(Interface, Interface, Interface), provides=ITALESExtension) class PyAMSContentTagTALESExtension(ContextRequestViewAdapter): """PyAMS content tag TALES extension""" @@ -79,7 +79,7 @@ @adapter_config(name='pyams_date', - context=(Interface, IPyAMSUserLayer, Interface), + context=(Interface, Interface, Interface), provides=ITALESExtension) class PyAMSContentDateTALESExtension(ContextRequestViewAdapter): """PyAMS content date TALES extension""" @@ -101,7 +101,7 @@ @adapter_config(name='pyams_illustration', - context=(Interface, IPyAMSUserLayer, Interface), + context=(Interface, Interface, Interface), provides=ITALESExtension) class PyAMSContentIllustrationTALESExtension(ContextRequestViewAdapter): """PyAMS content illustration TALES extension"""