Renamed adapter class
authorThierry Florac <tflorac@ulthar.net>
Wed, 03 Oct 2018 16:11:39 +0200
changeset 993 ce5091a24640
parent 992 8fd039f79d30
child 994 0f73d19137e4
Renamed adapter class
src/pyams_content/features/alert/__init__.py
--- a/src/pyams_content/features/alert/__init__.py	Wed Oct 03 11:06:08 2018 +0200
+++ b/src/pyams_content/features/alert/__init__.py	Wed Oct 03 16:11:39 2018 +0200
@@ -12,21 +12,16 @@
 
 __docformat__ = 'restructuredtext'
 
+from persistent import Persistent
+from zope.container.contained import Contained
+from zope.interface import implementer
+from zope.schema.fieldproperty import FieldProperty
 
-# import standard library
-from persistent import Persistent
-
-# import interfaces
+from pyams_content.component.links import InternalReferenceMixin
 from pyams_content.features.alert.interfaces import IAlertItem
 from pyams_content.interfaces import MANAGE_SITE_ROOT_PERMISSION
 from pyams_form.interfaces.form import IFormContextPermissionChecker
-
-# import packages
-from pyams_content.component.links import InternalReferenceMixin
-from pyams_utils.adapter import adapter_config, ContextAdapter
-from zope.container.contained import Contained
-from zope.interface import implementer
-from zope.schema.fieldproperty import FieldProperty
+from pyams_utils.adapter import ContextAdapter, adapter_config
 
 
 @implementer(IAlertItem)
@@ -43,7 +38,7 @@
 
 
 @adapter_config(context=IAlertItem, provides=IFormContextPermissionChecker)
-class AlertitemPermissionChecker(ContextAdapter):
+class AlertItemPermissionChecker(ContextAdapter):
     """Alert item permission checker"""
 
     edit_permission = MANAGE_SITE_ROOT_PERMISSION