--- a/src/pyams_default_theme/component/illustration/__init__.py Mon Mar 18 16:47:47 2019 +0100
+++ b/src/pyams_default_theme/component/illustration/__init__.py Mon Mar 18 16:52:02 2019 +0100
@@ -91,10 +91,11 @@
class PyAMSIllustrationTALESExtension(ContextRequestViewAdapter):
"""PyAMS illustration TALES extension"""
- def render(self, context=None):
+ def render(self, context=None, name=''):
if context is None:
context = self.context
- return self.request.registry.queryMultiAdapter((context, self.request), IContentNavigationIllustration)
+ return self.request.registry.queryMultiAdapter((context, self.request), IContentNavigationIllustration,
+ name=name)
@adapter_config(name='pyams_banner_illustration',
@@ -103,10 +104,11 @@
class PyAMSBannerIllustrationTALESExtension(ContextRequestViewAdapter):
"""PyAMS banner illustration TALES extension"""
- def render(self, context=None):
+ def render(self, context=None, name=''):
if context is None:
context = self.context
- return self.request.registry.queryMultiAdapter((context, self.request), IContentBannerIllustration)
+ return self.request.registry.queryMultiAdapter((context, self.request), IContentBannerIllustration,
+ name=name)
@adapter_config(name='pyams_header_illustration',
@@ -115,10 +117,11 @@
class PyAMSHeaderIllustrationTALESExtension(ContextRequestViewAdapter):
"""PyAMS header illustration TALES extension"""
- def render(self, context=None):
+ def render(self, context=None, name=''):
if context is None:
context = self.context
- return self.request.registry.queryMultiAdapter((context, self.request), IContentHeaderIllustration)
+ return self.request.registry.queryMultiAdapter((context, self.request), IContentHeaderIllustration,
+ name=name)
#