src/pyams_content/shared/view/interfaces.py
changeset 1060 29b1aaf9e080
parent 1059 34e6d07ea2e9
child 1090 d6d041577ae0
--- a/src/pyams_content/shared/view/interfaces.py	Tue Nov 06 14:40:22 2018 +0100
+++ b/src/pyams_content/shared/view/interfaces.py	Wed Nov 07 17:29:16 2018 +0100
@@ -12,20 +12,15 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
+from zope.interface import Attribute, Interface
+from zope.schema import Bool, Choice, Int, Set
+from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
 
-# import interfaces
-from pyams_content.shared.common.interfaces import ISharedContent, IWfSharedContent, ISharedTool, \
-    CONTENT_TYPES_VOCABULARY
+from pyams_content.shared.common.interfaces import CONTENT_TYPES_VOCABULARY, ISharedContent, ISharedTool, \
+    IWfSharedContent
 from pyams_content.shared.common.interfaces.types import ALL_DATA_TYPES_VOCABULARY
 from pyams_sequence.interfaces import IInternalReferencesList
-
-# import packages
 from pyams_thesaurus.schema import ThesaurusTermsListField
-from zope.interface import Interface, Attribute
-from zope.schema import Set, Choice, Bool, Int
-from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
 
 from pyams_content import _
 
@@ -33,7 +28,6 @@
 VIEW_CONTENT_TYPE = 'view'
 VIEW_CONTENT_NAME = _('View')
 
-
 CREATION_DATE_ORDER = 'created_date'
 UPDATE_DATE_ORDER = 'modified_date'
 PUBLICATION_DATE_ORDER = 'publication_date'
@@ -159,15 +153,15 @@
 
 VIEW_REFERENCES_SETTINGS_KEY = 'pyams_content.view.references'
 
-
 ALWAYS_REFERENCE_MODE = 'always'
 IFEMPTY_REFERENCE_MODE = 'if_empty'
 
-REFERENCES_MODES = {ALWAYS_REFERENCE_MODE: _("Always include selected internal references"),
-                    IFEMPTY_REFERENCE_MODE: _("Include selected internal references only if empty")}
+REFERENCES_MODES = {
+    ALWAYS_REFERENCE_MODE: _("Always include selected internal references"),
+    IFEMPTY_REFERENCE_MODE: _("Include selected internal references only if empty")
+}
 
-REFERENCES_MODES_VOCABULARY = SimpleVocabulary([SimpleTerm(v, title=t)
-                                                for v, t in REFERENCES_MODES.items()])
+REFERENCES_MODES_VOCABULARY = SimpleVocabulary([SimpleTerm(v, title=t) for v, t in REFERENCES_MODES.items()])
 
 
 class IViewInternalReferencesSettings(IViewSettings, IInternalReferencesList):