src/pyams_portal/portlets/image/__init__.py
changeset 2 619200513bbc
parent 0 6f99128c6d48
child 5 670b7956c689
--- a/src/pyams_portal/portlets/image/__init__.py	Wed Jun 17 09:58:38 2015 +0200
+++ b/src/pyams_portal/portlets/image/__init__.py	Thu Oct 08 12:24:42 2015 +0200
@@ -9,7 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_file.property import FileProperty
 
 __docformat__ = 'restructuredtext'
 
@@ -20,8 +19,10 @@
 from .interfaces import IImagePortletConfiguration
 from pyams_portal.interfaces import IPortalContext, IPortletRenderer
 from pyams_skin.layer import IPyAMSLayer
+from pyams_utils.interfaces import VIEW_PERMISSION
 
 # import packages
+from pyams_file.property import FileProperty
 from pyams_portal.portlet import portlet_config, Portlet, PortletConfiguration, PortletRenderer
 from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config
@@ -33,7 +34,7 @@
 IMAGE_PORTLET_NAME = 'pyams_portal.portlet.image'
 
 
-@portlet_config(permission='view')
+@portlet_config(permission=VIEW_PERMISSION)
 class ImagePortlet(Portlet):
     """Image portlet