Updated viewlet 'layer' argument
authorThierry Florac <thierry.florac@onf.fr>
Fri, 09 Feb 2018 16:08:59 +0100
changeset 388 01d0a17753d0
parent 387 ae83911a4ed4
child 389 51377db3e723
Updated viewlet 'layer' argument
src/pyams_content/shared/imagemap/zmi/paragraph.py
--- a/src/pyams_content/shared/imagemap/zmi/paragraph.py	Fri Feb 09 15:38:54 2018 +0100
+++ b/src/pyams_content/shared/imagemap/zmi/paragraph.py	Fri Feb 09 16:08:59 2018 +0100
@@ -146,7 +146,7 @@
         return output
 
 
-@viewlet_config(name='imagemap-preview', context=IImageMapParagraph, request=IPyAMSLayer,
+@viewlet_config(name='imagemap-preview', context=IImageMapParagraph, layer=IPyAMSLayer,
                 view=ImagemapParagraphInnerEditForm, manager=IWidgetsSuffixViewletsManager, weight=1)
 @template_config(template='templates/imagemap-preview.pt', layer=IPyAMSLayer)
 class ImagemapParagraphPreviewWidgetsSuffix(Viewlet):