Changed viewlets layer
authorThierry Florac <thierry.florac@onf.fr>
Wed, 22 Jul 2015 16:55:18 +0200
changeset 16 a29ce361f097
parent 15 17a9b2d027ec
child 17 138d2a1faf82
Changed viewlets layer
src/pyams_file/zmi/image.py
--- a/src/pyams_file/zmi/image.py	Wed Jul 22 16:54:48 2015 +0200
+++ b/src/pyams_file/zmi/image.py	Wed Jul 22 16:55:18 2015 +0200
@@ -43,7 +43,7 @@
 from pyams_file import _
 
 
-@viewlet_config(name='image.resize.divider', context=IImage, layer=IAdminLayer, view=Interface,
+@viewlet_config(name='image.resize.divider', context=IImage, layer=IPyAMSLayer, view=Interface,
                 manager=IContextActions, permission='manage', weight=19)
 class ImageDividerAction(ToolbarMenuDivider):
     """Image divider action"""
@@ -53,7 +53,7 @@
 # Image resize
 #
 
-@viewlet_config(name='image.resize.action', context=IImage, layer=IAdminLayer, view=Interface,
+@viewlet_config(name='image.resize.action', context=IImage, layer=IPyAMSLayer, view=Interface,
                 manager=IContextActions, permission='manage', weight=20)
 class ImageResizeAction(ToolbarMenuItem):
     """Image resize action"""
@@ -153,7 +153,7 @@
 # Image crop
 #
 
-@viewlet_config(name='image.crop.action', context=IImage, layer=IAdminLayer, view=Interface,
+@viewlet_config(name='image.crop.action', context=IImage, layer=IPyAMSLayer, view=Interface,
                 manager=IContextActions, permission='manage', weight=21)
 class ImageCropAction(ToolbarMenuItem):
     """Image crop action"""
@@ -224,7 +224,7 @@
 # Image square thumbnail selection
 #
 
-@viewlet_config(name='image.thumb.divider', context=IImage, layer=IAdminLayer, view=IThumnailImageWidget,
+@viewlet_config(name='image.thumb.divider', context=IImage, layer=IPyAMSLayer, view=IThumnailImageWidget,
                 manager=IContextActions, permission='manage', weight=30)
 class ImageThumbnailsDividerAction(ToolbarMenuDivider):
     """Image divider action"""
@@ -237,7 +237,7 @@
     crop = button.Button(name='crop', title=_("Select thumbnail"))
 
 
-@viewlet_config(name='image.thumb.square.action', context=IImage, layer=IAdminLayer, view=IThumnailImageWidget,
+@viewlet_config(name='image.thumb.square.action', context=IImage, layer=IPyAMSLayer, view=IThumnailImageWidget,
                 manager=IContextActions, permission='manage', weight=31)
 class ImageSquareThumbnailAction(ToolbarMenuItem):
     """Square thumbnail image selection"""