diff --git a/src/collective/volto/formsupport/__init__.py b/src/collective/volto/formsupport/__init__.py index 248bf3c9..0ca23783 100644 --- a/src/collective/volto/formsupport/__init__.py +++ b/src/collective/volto/formsupport/__init__.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- """Init and utils.""" -from zope.i18nmessageid import MessageFactory - import logging +from zope.i18nmessageid import MessageFactory logger = logging.getLogger(__name__) _ = MessageFactory("collective.volto.formsupport") diff --git a/src/collective/volto/formsupport/captcha/hcaptcha.py b/src/collective/volto/formsupport/captcha/hcaptcha.py index 3d562711..e1bf3fe7 100644 --- a/src/collective/volto/formsupport/captcha/hcaptcha.py +++ b/src/collective/volto/formsupport/captcha/hcaptcha.py @@ -1,5 +1,3 @@ -from . import CaptchaSupport -from collective.volto.formsupport import _ from plone.formwidget.hcaptcha.interfaces import IHCaptchaSettings from plone.formwidget.hcaptcha.nohcaptcha import submit @@ -9,6 +7,10 @@ from zope.component import queryUtility from zope.i18n import translate +from collective.volto.formsupport import _ + +from . import CaptchaSupport + class HCaptchaSupport(CaptchaSupport): name = _("HCaptcha") diff --git a/src/collective/volto/formsupport/captcha/honeypot.py b/src/collective/volto/formsupport/captcha/honeypot.py index 9546ff09..d83dab99 100644 --- a/src/collective/volto/formsupport/captcha/honeypot.py +++ b/src/collective/volto/formsupport/captcha/honeypot.py @@ -1,11 +1,13 @@ -from . import CaptchaSupport from collective.honeypot.config import HONEYPOT_FIELD from collective.honeypot.utils import found_honeypot -from collective.volto.formsupport import _ from plone.restapi.deserializer import json_body from zExceptions import BadRequest from zope.i18n import translate +from collective.volto.formsupport import _ + +from . import CaptchaSupport + class HoneypotSupport(CaptchaSupport): name = _("Honeypot Support") diff --git a/src/collective/volto/formsupport/captcha/norobots.py b/src/collective/volto/formsupport/captcha/norobots.py index 0800f12d..f4c13a0e 100644 --- a/src/collective/volto/formsupport/captcha/norobots.py +++ b/src/collective/volto/formsupport/captcha/norobots.py @@ -1,5 +1,5 @@ -from . import CaptchaSupport -from collective.volto.formsupport import _ +import json + from collective.z3cform.norobots.browser.interfaces import INorobotsWidgetSettings from plone import api from plone.registry.interfaces import IRegistry @@ -7,7 +7,9 @@ from zope.component import queryUtility from zope.i18n import translate -import json +from collective.volto.formsupport import _ + +from . import CaptchaSupport class NoRobotsSupport(CaptchaSupport): diff --git a/src/collective/volto/formsupport/captcha/recaptcha.py b/src/collective/volto/formsupport/captcha/recaptcha.py index c801ad9f..9ac17abf 100644 --- a/src/collective/volto/formsupport/captcha/recaptcha.py +++ b/src/collective/volto/formsupport/captcha/recaptcha.py @@ -1,5 +1,3 @@ -from . import CaptchaSupport -from collective.volto.formsupport import _ from plone.formwidget.recaptcha.interfaces import IReCaptchaSettings from plone.formwidget.recaptcha.norecaptcha import submit from plone.registry.interfaces import IRegistry @@ -7,6 +5,10 @@ from zope.component import queryUtility from zope.i18n import translate +from collective.volto.formsupport import _ + +from . import CaptchaSupport + class RecaptchaSupport(CaptchaSupport): name = _("Google ReCaptcha") diff --git a/src/collective/volto/formsupport/captcha/vocabularies.py b/src/collective/volto/formsupport/captcha/vocabularies.py index 8e91e53d..70b85231 100644 --- a/src/collective/volto/formsupport/captcha/vocabularies.py +++ b/src/collective/volto/formsupport/captcha/vocabularies.py @@ -1,9 +1,9 @@ -from ..interfaces import ICaptchaSupport from zope.component import getAdapters from zope.interface import provider from zope.schema.interfaces import IVocabularyFactory -from zope.schema.vocabulary import SimpleTerm -from zope.schema.vocabulary import SimpleVocabulary +from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary + +from ..interfaces import ICaptchaSupport @provider(IVocabularyFactory) diff --git a/src/collective/volto/formsupport/datamanager/catalog.py b/src/collective/volto/formsupport/datamanager/catalog.py index c92317ae..9611ccfb 100644 --- a/src/collective/volto/formsupport/datamanager/catalog.py +++ b/src/collective/volto/formsupport/datamanager/catalog.py @@ -1,21 +1,20 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport import logger -from collective.volto.formsupport.interfaces import IFormDataStore -from collective.volto.formsupport.utils import get_blocks from copy import deepcopy from datetime import datetime + from plone.dexterity.interfaces import IDexterityContent from plone.restapi.deserializer import json_body from repoze.catalog.catalog import Catalog from repoze.catalog.indexes.field import CatalogFieldIndex from souper.interfaces import ICatalogFactory -from souper.soup import get_soup -from souper.soup import NodeAttributeIndexer -from souper.soup import Record +from souper.soup import NodeAttributeIndexer, Record, get_soup from zope.component import adapter -from zope.interface import implementer -from zope.interface import Interface +from zope.interface import Interface, implementer + +from collective.volto.formsupport import logger +from collective.volto.formsupport.interfaces import IFormDataStore +from collective.volto.formsupport.utils import get_blocks @implementer(ICatalogFactory) diff --git a/src/collective/volto/formsupport/locales/update.py b/src/collective/volto/formsupport/locales/update.py index 32febc89..93d70406 100644 --- a/src/collective/volto/formsupport/locales/update.py +++ b/src/collective/volto/formsupport/locales/update.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- import os -import pkg_resources import subprocess +import pkg_resources domain = "collective.volto.formsupport" os.chdir(pkg_resources.resource_filename(domain, "")) diff --git a/src/collective/volto/formsupport/restapi/serializer/blocks.py b/src/collective/volto/formsupport/restapi/serializer/blocks.py index 90771487..8da9bf63 100644 --- a/src/collective/volto/formsupport/restapi/serializer/blocks.py +++ b/src/collective/volto/formsupport/restapi/serializer/blocks.py @@ -1,15 +1,17 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.interfaces import ICaptchaSupport -from collective.volto.formsupport.interfaces import ICollectiveVoltoFormsupportLayer +import os + from plone import api from plone.restapi.behaviors import IBlocks from plone.restapi.interfaces import IBlockFieldSerializationTransformer from Products.CMFPlone.interfaces import IPloneSiteRoot -from zope.component import adapter -from zope.component import getMultiAdapter +from zope.component import adapter, getMultiAdapter from zope.interface import implementer -import os +from collective.volto.formsupport.interfaces import ( + ICaptchaSupport, + ICollectiveVoltoFormsupportLayer, +) class FormSerializer(object): diff --git a/src/collective/volto/formsupport/restapi/services/form_data/clear.py b/src/collective/volto/formsupport/restapi/services/form_data/clear.py index 02b2fd90..378627ba 100644 --- a/src/collective/volto/formsupport/restapi/services/form_data/clear.py +++ b/src/collective/volto/formsupport/restapi/services/form_data/clear.py @@ -1,10 +1,12 @@ # -*- coding: utf-8 -*- -from .form_data import FormData -from collective.volto.formsupport.interfaces import IFormDataStore from plone.restapi.deserializer import json_body from plone.restapi.services import Service from zope.component import getMultiAdapter +from collective.volto.formsupport.interfaces import IFormDataStore + +from .form_data import FormData + class FormDataClear(Service): def reply(self): diff --git a/src/collective/volto/formsupport/restapi/services/form_data/csv.py b/src/collective/volto/formsupport/restapi/services/form_data/csv.py index 6b98d2b3..bf6628a1 100644 --- a/src/collective/volto/formsupport/restapi/services/form_data/csv.py +++ b/src/collective/volto/formsupport/restapi/services/form_data/csv.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.interfaces import IFormDataStore +import csv + +import six from plone.restapi.serializer.converters import json_compatible from plone.restapi.services import Service from six import StringIO from zope.component import getMultiAdapter -import csv -import six - +from collective.volto.formsupport.interfaces import IFormDataStore SKIP_ATTRS = ["block_id", "fields_labels", "fields_order"] diff --git a/src/collective/volto/formsupport/restapi/services/form_data/form_data.py b/src/collective/volto/formsupport/restapi/services/form_data/form_data.py index f1ac6569..b5a319e1 100644 --- a/src/collective/volto/formsupport/restapi/services/form_data/form_data.py +++ b/src/collective/volto/formsupport/restapi/services/form_data/form_data.py @@ -1,21 +1,19 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.interfaces import IFormDataStore -from collective.volto.formsupport.utils import get_blocks -from datetime import datetime -from datetime import timedelta +import json +from datetime import datetime, timedelta + +import six from plone import api from plone.memoize import view from plone.restapi.interfaces import IExpandableElement from plone.restapi.serializer.converters import json_compatible from plone.restapi.services import Service -from zope.component import adapter -from zope.component import getMultiAdapter -from zope.interface import implementer -from zope.interface import Interface +from zope.component import adapter, getMultiAdapter +from zope.interface import Interface, implementer -import json -import six +from collective.volto.formsupport.interfaces import IFormDataStore +from collective.volto.formsupport.utils import get_blocks @implementer(IExpandableElement) diff --git a/src/collective/volto/formsupport/restapi/services/submit_form/post.py b/src/collective/volto/formsupport/restapi/services/submit_form/post.py index 9695fca0..87e94966 100644 --- a/src/collective/volto/formsupport/restapi/services/submit_form/post.py +++ b/src/collective/volto/formsupport/restapi/services/submit_form/post.py @@ -1,13 +1,15 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport import _ -from collective.volto.formsupport.interfaces import ICaptchaSupport -from collective.volto.formsupport.interfaces import IFormDataStore -from collective.volto.formsupport.interfaces import IPostEvent -from collective.volto.formsupport.utils import get_blocks +import codecs +import logging +import math +import os from datetime import datetime from email import policy from email.message import EmailMessage +from xml.etree.ElementTree import Element, ElementTree, SubElement + +import six from plone import api from plone.protect.interfaces import IDisableCSRFProtection from plone.registry.interfaces import IRegistry @@ -15,23 +17,19 @@ from plone.restapi.services import Service from plone.schema.email import _isemail from Products.CMFPlone.interfaces.controlpanel import IMailSchema -from xml.etree.ElementTree import Element -from xml.etree.ElementTree import ElementTree -from xml.etree.ElementTree import SubElement from zExceptions import BadRequest -from zope.component import getMultiAdapter -from zope.component import getUtility +from zope.component import getMultiAdapter, getUtility from zope.event import notify from zope.i18n import translate -from zope.interface import alsoProvides -from zope.interface import implementer - -import codecs -import logging -import math -import os -import six +from zope.interface import alsoProvides, implementer +from collective.volto.formsupport import _ +from collective.volto.formsupport.interfaces import ( + ICaptchaSupport, + IFormDataStore, + IPostEvent, +) +from collective.volto.formsupport.utils import get_blocks logger = logging.getLogger(__name__) CTE = os.environ.get("MAIL_CONTENT_TRANSFER_ENCODING", None) diff --git a/src/collective/volto/formsupport/scripts/cleansing.py b/src/collective/volto/formsupport/scripts/cleansing.py index 9fe0fb39..a8d949fb 100644 --- a/src/collective/volto/formsupport/scripts/cleansing.py +++ b/src/collective/volto/formsupport/scripts/cleansing.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.interfaces import IFormDataStore -from collective.volto.formsupport.restapi.services.form_data.form_data import FormData +import sys + +import click +import transaction from plone import api from zope.component import getMultiAdapter from zope.globalrequest import getRequest -import click -import sys -import transaction +from collective.volto.formsupport.interfaces import IFormDataStore +from collective.volto.formsupport.restapi.services.form_data.form_data import FormData @click.command( diff --git a/src/collective/volto/formsupport/testing.py b/src/collective/volto/formsupport/testing.py index 0ee465ef..1b9ae941 100644 --- a/src/collective/volto/formsupport/testing.py +++ b/src/collective/volto/formsupport/testing.py @@ -1,17 +1,19 @@ # -*- coding: utf-8 -*- +import collective.honeypot +import collective.MockMailHost +import plone.restapi from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE -from plone.app.testing import applyProfile -from plone.app.testing import FunctionalTesting -from plone.app.testing import IntegrationTesting -from plone.app.testing import PloneSandboxLayer -from plone.app.testing import quickInstallProduct +from plone.app.testing import ( + FunctionalTesting, + IntegrationTesting, + PloneSandboxLayer, + applyProfile, + quickInstallProduct, +) from plone.restapi.testing import PloneRestApiDXLayer from plone.testing import z2 -import collective.honeypot -import collective.MockMailHost import collective.volto.formsupport -import plone.restapi class VoltoFormsupportLayer(PloneSandboxLayer): diff --git a/src/collective/volto/formsupport/tests/test_captcha.py b/src/collective/volto/formsupport/tests/test_captcha.py index e525fff8..aacc6bf9 100644 --- a/src/collective/volto/formsupport/tests/test_captcha.py +++ b/src/collective/volto/formsupport/tests/test_captcha.py @@ -1,26 +1,28 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) -from collective.z3cform.norobots.browser.interfaces import INorobotsWidgetSettings +import json +import unittest from hashlib import md5 +from unittest.mock import Mock, patch + +import transaction +from collective.z3cform.norobots.browser.interfaces import INorobotsWidgetSettings from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.formwidget.hcaptcha.interfaces import IHCaptchaSettings from plone.formwidget.recaptcha.interfaces import IReCaptchaSettings from plone.registry.interfaces import IRegistry from plone.restapi.testing import RelativeSession from Products.MailHost.interfaces import IMailHost -from unittest.mock import Mock -from unittest.mock import patch from zope.component import getUtility -import json -import transaction -import unittest +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) class TestCaptcha(unittest.TestCase): diff --git a/src/collective/volto/formsupport/tests/test_event.py b/src/collective/volto/formsupport/tests/test_event.py index 279903a8..11433eea 100644 --- a/src/collective/volto/formsupport/tests/test_event.py +++ b/src/collective/volto/formsupport/tests/test_event.py @@ -1,20 +1,23 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) +import unittest + +import transaction from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.registry.interfaces import IRegistry from plone.restapi.testing import RelativeSession from Products.MailHost.interfaces import IMailHost from zope.component import getUtility from zope.configuration import xmlconfig -import transaction -import unittest +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) def event_handler(event): diff --git a/src/collective/volto/formsupport/tests/test_honeypot.py b/src/collective/volto/formsupport/tests/test_honeypot.py index 09a8b9e3..6dda3a61 100644 --- a/src/collective/volto/formsupport/tests/test_honeypot.py +++ b/src/collective/volto/formsupport/tests/test_honeypot.py @@ -1,20 +1,23 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) +import json +import unittest + +import transaction from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.registry.interfaces import IRegistry from plone.restapi.testing import RelativeSession from Products.MailHost.interfaces import IMailHost from zope.component import getUtility -import json -import transaction -import unittest +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) class TestHoneypot(unittest.TestCase): diff --git a/src/collective/volto/formsupport/tests/test_send_action_form.py b/src/collective/volto/formsupport/tests/test_send_action_form.py index af397735..e8109762 100644 --- a/src/collective/volto/formsupport/tests/test_send_action_form.py +++ b/src/collective/volto/formsupport/tests/test_send_action_form.py @@ -1,23 +1,26 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) +import base64 +import os +import unittest +import xml.etree.ElementTree as ET from email.parser import Parser + +import transaction from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.registry.interfaces import IRegistry from plone.restapi.testing import RelativeSession from Products.MailHost.interfaces import IMailHost from zope.component import getUtility -import base64 -import os -import transaction -import unittest -import xml.etree.ElementTree as ET +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) class TestMailSend(unittest.TestCase): diff --git a/src/collective/volto/formsupport/tests/test_serialize_block.py b/src/collective/volto/formsupport/tests/test_serialize_block.py index 26bcf201..a3b81cb3 100644 --- a/src/collective/volto/formsupport/tests/test_serialize_block.py +++ b/src/collective/volto/formsupport/tests/test_serialize_block.py @@ -1,21 +1,24 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) +import os +import unittest + +import transaction from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.formwidget.hcaptcha.interfaces import IHCaptchaSettings from plone.formwidget.recaptcha.interfaces import IReCaptchaSettings from plone.registry.interfaces import IRegistry from plone.restapi.testing import RelativeSession from zope.component import getUtility -import os -import transaction -import unittest +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) class TestBlockSerialization(unittest.TestCase): diff --git a/src/collective/volto/formsupport/tests/test_setup.py b/src/collective/volto/formsupport/tests/test_setup.py index 47f8617a..b77fdc59 100644 --- a/src/collective/volto/formsupport/tests/test_setup.py +++ b/src/collective/volto/formsupport/tests/test_setup.py @@ -1,14 +1,13 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" +import unittest + +from plone import api +from plone.app.testing import TEST_USER_ID, setRoles + from collective.volto.formsupport.testing import ( # noqa: E501, VOLTO_FORMSUPPORT_INTEGRATION_TESTING, ) -from plone import api -from plone.app.testing import setRoles -from plone.app.testing import TEST_USER_ID - -import unittest - try: from Products.CMFPlone.utils import get_installer @@ -42,10 +41,11 @@ def test_product_installed(self): def test_browserlayer(self): """Test that ICollectiveVoltoFormsupportLayer is registered.""" + from plone.browserlayer import utils + from collective.volto.formsupport.interfaces import ( ICollectiveVoltoFormsupportLayer, ) - from plone.browserlayer import utils self.assertIn(ICollectiveVoltoFormsupportLayer, utils.registered_layers()) @@ -80,9 +80,10 @@ def test_product_uninstalled(self): def test_browserlayer_removed(self): """Test that ICollectiveVoltoFormsupportLayer is removed.""" + from plone.browserlayer import utils + from collective.volto.formsupport.interfaces import ( ICollectiveVoltoFormsupportLayer, ) - from plone.browserlayer import utils self.assertNotIn(ICollectiveVoltoFormsupportLayer, utils.registered_layers()) diff --git a/src/collective/volto/formsupport/tests/test_store_action_form.py b/src/collective/volto/formsupport/tests/test_store_action_form.py index abc7a615..cb613bbd 100644 --- a/src/collective/volto/formsupport/tests/test_store_action_form.py +++ b/src/collective/volto/formsupport/tests/test_store_action_form.py @@ -1,21 +1,24 @@ # -*- coding: utf-8 -*- -from collective.volto.formsupport.testing import ( # noqa: E501, - VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, -) +import csv +import unittest from datetime import datetime from io import StringIO + +import transaction from plone import api -from plone.app.testing import setRoles -from plone.app.testing import SITE_OWNER_NAME -from plone.app.testing import SITE_OWNER_PASSWORD -from plone.app.testing import TEST_USER_ID +from plone.app.testing import ( + SITE_OWNER_NAME, + SITE_OWNER_PASSWORD, + TEST_USER_ID, + setRoles, +) from plone.restapi.testing import RelativeSession from Products.MailHost.interfaces import IMailHost from zope.component import getUtility -import csv -import transaction -import unittest +from collective.volto.formsupport.testing import ( # noqa: E501, + VOLTO_FORMSUPPORT_API_FUNCTIONAL_TESTING, +) class TestMailSend(unittest.TestCase): diff --git a/src/collective/volto/formsupport/upgrades.py b/src/collective/volto/formsupport/upgrades.py index 28b3ac36..1f918c48 100644 --- a/src/collective/volto/formsupport/upgrades.py +++ b/src/collective/volto/formsupport/upgrades.py @@ -1,16 +1,16 @@ # -*- coding: utf-8 -*- -from Acquisition import aq_base -from collective.volto.formsupport.interfaces import IFormDataStore from copy import deepcopy + +from Acquisition import aq_base from plone import api from plone.dexterity.utils import iterSchemata from plone.i18n.normalizer.interfaces import IIDNormalizer from souper.soup import Record -from zope.component import getMultiAdapter -from zope.component import getUtility +from zope.component import getMultiAdapter, getUtility from zope.globalrequest import getRequest from zope.schema import getFields +from collective.volto.formsupport.interfaces import IFormDataStore try: from collective.volto.blocksfield.field import BlocksField @@ -19,10 +19,9 @@ except ImportError: HAS_BLOCKSFIELD = False -from collective.volto.formsupport import logger - import json +from collective.volto.formsupport import logger DEFAULT_PROFILE = "profile-collective.volto.formsupport:default" diff --git a/src/collective/volto/formsupport/utils.py b/src/collective/volto/formsupport/utils.py index ed3f1d0a..2620885e 100644 --- a/src/collective/volto/formsupport/utils.py +++ b/src/collective/volto/formsupport/utils.py @@ -1,7 +1,7 @@ -from collections import deque - import copy import json +from collections import deque + import six