diff --git a/src/iosanita/contenttypes/content/persona.py b/src/iosanita/contenttypes/content/persona.py index 82fe9de..3ff7945 100644 --- a/src/iosanita/contenttypes/content/persona.py +++ b/src/iosanita/contenttypes/content/persona.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from iosanita.contenttypes.interfaces.persona import IPersona -from plone.dexterity.content import Container from plone.app.content.interfaces import INameFromTitle +from plone.dexterity.content import Container from zope.interface import implementer diff --git a/src/iosanita/contenttypes/indexers/taxonomies.py b/src/iosanita/contenttypes/indexers/taxonomies.py index bcbe074..94a7975 100644 --- a/src/iosanita/contenttypes/indexers/taxonomies.py +++ b/src/iosanita/contenttypes/indexers/taxonomies.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -from plone.indexer.decorator import indexer from collective.taxonomy import PATH_SEPARATOR from collective.taxonomy.interfaces import ITaxonomy +from plone.dexterity.interfaces import IDexterityContent +from plone.indexer.decorator import indexer from zope.component import getUtility from zope.globalrequest import getRequest -from plone.dexterity.interfaces import IDexterityContent def extract_taxonomies(context, field): diff --git a/src/iosanita/contenttypes/interfaces/persona.py b/src/iosanita/contenttypes/interfaces/persona.py index c873561..629997c 100644 --- a/src/iosanita/contenttypes/interfaces/persona.py +++ b/src/iosanita/contenttypes/interfaces/persona.py @@ -3,14 +3,15 @@ from iosanita.contenttypes import _ from iosanita.contenttypes.interfaces import IIosanitaContenttypes from plone.app.dexterity import textindexer +from plone.app.z3cform.widget import RelatedItemsFieldWidget +from plone.autoform import directives as form from plone.namedfile import field from plone.supermodel import model -from zope import schema -from plone.autoform import directives as form -from z3c.form.interfaces import IAddForm, IEditForm -from plone.app.z3cform.widget import RelatedItemsFieldWidget +from z3c.form.interfaces import IAddForm +from z3c.form.interfaces import IEditForm from z3c.relationfield.schema import RelationChoice from z3c.relationfield.schema import RelationList +from zope import schema class IPersona(model.Schema, IIosanitaContenttypes): diff --git a/src/iosanita/contenttypes/setuphandlers.py b/src/iosanita/contenttypes/setuphandlers.py index 4a6c54a..ac60b99 100644 --- a/src/iosanita/contenttypes/setuphandlers.py +++ b/src/iosanita/contenttypes/setuphandlers.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from collective.taxonomy.interfaces import ITaxonomy +from plone import api from Products.CMFPlone.interfaces import INonInstallable +from redturtle.bandi.interfaces.settings import IBandoSettings from zope.component import getUtilitiesFor from zope.interface import implementer -from redturtle.bandi.interfaces.settings import IBandoSettings -from plone import api import logging diff --git a/src/iosanita/contenttypes/testing.py b/src/iosanita/contenttypes/testing.py index 37f6204..6c4d1b8 100644 --- a/src/iosanita/contenttypes/testing.py +++ b/src/iosanita/contenttypes/testing.py @@ -1,4 +1,3 @@ -import iosanita.contenttypes.adapters from plone.app.testing import applyProfile from plone.app.testing import FunctionalTesting from plone.app.testing import IntegrationTesting @@ -6,16 +5,17 @@ from redturtle.volto.testing import RedturtleVoltoLayer from zope.configuration import xmlconfig +import collective.taxonomy import collective.venue import collective.volto.blocksfield import collective.volto.cookieconsent import collective.z3cform.datagridfield import iosanita.contenttypes +import iosanita.contenttypes.adapters import kitconcept.seo import plone.app.caching import plone.formwidget.geolocation import plone.restapi -import collective.taxonomy import redturtle.bandi diff --git a/src/iosanita/contenttypes/tests/test_ct_bando.py b/src/iosanita/contenttypes/tests/test_ct_bando.py index 41b7fa5..3afdd28 100644 --- a/src/iosanita/contenttypes/tests/test_ct_bando.py +++ b/src/iosanita/contenttypes/tests/test_ct_bando.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING from plone import api from plone.app.testing import setRoles from plone.app.testing import SITE_OWNER_NAME diff --git a/src/iosanita/contenttypes/tests/test_ct_event.py b/src/iosanita/contenttypes/tests/test_ct_event.py index 80d1acd..bc01fe5 100644 --- a/src/iosanita/contenttypes/tests/test_ct_event.py +++ b/src/iosanita/contenttypes/tests/test_ct_event.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING from plone import api from plone.app.testing import setRoles from plone.app.testing import SITE_OWNER_NAME diff --git a/src/iosanita/contenttypes/tests/test_ct_persona.py b/src/iosanita/contenttypes/tests/test_ct_persona.py index 76ccf22..0a28661 100644 --- a/src/iosanita/contenttypes/tests/test_ct_persona.py +++ b/src/iosanita/contenttypes/tests/test_ct_persona.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING 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.restapi.testing import RelativeSession from plone.dexterity.utils import createContentInContainer +from plone.restapi.testing import RelativeSession import unittest diff --git a/src/iosanita/contenttypes/tests/test_ct_servizio.py b/src/iosanita/contenttypes/tests/test_ct_servizio.py index 9e52e96..cb67441 100644 --- a/src/iosanita/contenttypes/tests/test_ct_servizio.py +++ b/src/iosanita/contenttypes/tests/test_ct_servizio.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING from plone import api from plone.app.testing import setRoles from plone.app.testing import SITE_OWNER_NAME diff --git a/src/iosanita/contenttypes/tests/test_ct_struttura.py b/src/iosanita/contenttypes/tests/test_ct_struttura.py index ec5cdf7..b9742d9 100644 --- a/src/iosanita/contenttypes/tests/test_ct_struttura.py +++ b/src/iosanita/contenttypes/tests/test_ct_struttura.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING from plone import api from plone.app.testing import setRoles from plone.app.testing import SITE_OWNER_NAME diff --git a/src/iosanita/contenttypes/tests/test_ct_uo.py b/src/iosanita/contenttypes/tests/test_ct_uo.py index 2831e48..3371084 100644 --- a/src/iosanita/contenttypes/tests/test_ct_uo.py +++ b/src/iosanita/contenttypes/tests/test_ct_uo.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Setup tests for this package.""" -from iosanita.contenttypes.testing import RESTAPI_TESTING, INTEGRATION_TESTING +from iosanita.contenttypes.testing import INTEGRATION_TESTING +from iosanita.contenttypes.testing import RESTAPI_TESTING from plone import api from plone.app.testing import setRoles from plone.app.testing import SITE_OWNER_NAME