Updated TALES extensions layer interface
authorThierry Florac <thierry.florac@onf.fr>
Thu, 12 Jul 2018 17:08:14 +0200
changeset 90 fcca5c883a43
parent 89 62c88c2ad06a
child 91 d11056520bf5
Updated TALES extensions layer interface
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"""