Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jul 23, 2024
1 parent 3cfb60f commit fb6758a
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/iosanita/contenttypes/content/persona.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
4 changes: 2 additions & 2 deletions src/iosanita/contenttypes/indexers/taxonomies.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
9 changes: 5 additions & 4 deletions src/iosanita/contenttypes/interfaces/persona.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions src/iosanita/contenttypes/setuphandlers.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/iosanita/contenttypes/testing.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import iosanita.contenttypes.adapters
from plone.app.testing import applyProfile
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.testing.zope import WSGI_SERVER_FIXTURE
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


Expand Down
3 changes: 2 additions & 1 deletion src/iosanita/contenttypes/tests/test_ct_bando.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/iosanita/contenttypes/tests/test_ct_event.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/iosanita/contenttypes/tests/test_ct_persona.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/iosanita/contenttypes/tests/test_ct_servizio.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/iosanita/contenttypes/tests/test_ct_struttura.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/iosanita/contenttypes/tests/test_ct_uo.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fb6758a

Please sign in to comment.