src/pyams_content/component/paragraph/verbatim.py
changeset 1006 cbb65b4b8742
parent 936 2b31cde8c028
child 1157 ffb751b038cc
--- a/src/pyams_content/component/paragraph/verbatim.py	Tue Oct 09 15:05:38 2018 +0200
+++ b/src/pyams_content/component/paragraph/verbatim.py	Tue Oct 09 15:06:10 2018 +0200
@@ -12,25 +12,20 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
-
 from zope.interface import implementer
 from zope.schema.fieldproperty import FieldProperty
 
-# import interfaces
 from pyams_content.component.illustration.interfaces import IBasicIllustrationTarget
-# import packages
 from pyams_content.component.paragraph import BaseParagraph, BaseParagraphContentChecker, BaseParagraphFactory
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
-from pyams_content.component.paragraph.interfaces.verbatim import IVerbatimParagraph, VERBATIM_PARAGRAPH_TYPE, \
-    VERBATIM_PARAGRAPH_RENDERERS, VERBATIM_PARAGRAPH_NAME
-from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
+from pyams_content.component.paragraph.interfaces.verbatim import IVerbatimParagraph, VERBATIM_PARAGRAPH_NAME, \
+    VERBATIM_PARAGRAPH_RENDERERS, VERBATIM_PARAGRAPH_TYPE
+from pyams_content.features.checker.interfaces import IContentChecker, MISSING_LANG_VALUE, MISSING_VALUE
 from pyams_content.features.renderer import RenderersVocabulary
 from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
 from pyams_utils.adapter import adapter_config
 from pyams_utils.factory import factory_config
-from pyams_utils.registry import utility_config, get_utility
+from pyams_utils.registry import get_utility, utility_config
 from pyams_utils.traversing import get_parent
 from pyams_utils.vocabulary import vocabulary_config
 
@@ -74,7 +69,7 @@
             langs = manager.get_languages()
         else:
             negotiator = get_utility(INegotiator)
-            langs = (negotiator.server_language, )
+            langs = (negotiator.server_language,)
         i18n = II18n(self.context)
         for lang in langs:
             for attr in ('title', 'quote', 'charge'):
@@ -85,7 +80,7 @@
                         output.append(translate(MISSING_VALUE).format(field=field_title))
                     else:
                         output.append(translate(MISSING_LANG_VALUE).format(field=field_title, lang=lang))
-        for attr in ('author', ):
+        for attr in ('author',):
             value = getattr(self.context, attr, None)
             if not value:
                 field_title = translate(IVerbatimParagraph[attr].title)