Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Sep 6, 2024
1 parent 4bb6c48 commit 981effd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/iosanita/contenttypes/content/cartella_modulistica.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
from iosanita.contenttypes.interfaces.cartella_modulistica import (
ICartellaModulistica,
)
from iosanita.contenttypes.interfaces.cartella_modulistica import ICartellaModulistica
from plone.dexterity.content import Container
from zope.interface import implementer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
@implementer(IoSanitaBackReferenceExtractor)
@adapter(Interface, Interface)
class BackReferencesExtractor(object):

reference_id = None

def __init__(self, context, request):
Expand Down Expand Up @@ -78,7 +77,6 @@ def get_back_references(self, reference_id):
@implementer(IoSanitaBackReferenceExtractor)
@adapter(IServizio, Interface)
class BackReferencesExtractorServizio(BackReferencesExtractor):

reference_id = "servizio_correlato"

def __call__(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
from iosanita.contenttypes.interfaces.cartella_modulistica import (
ICartellaModulistica,
)
from iosanita.contenttypes.interfaces.cartella_modulistica import ICartellaModulistica
from plone.dexterity.utils import iterSchemata
from plone.restapi.interfaces import IExpandableElement
from plone.restapi.interfaces import IFieldSerializer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
from plone.app.testing import SITE_OWNER_PASSWORD
from plone.app.testing import TEST_USER_ID
from plone.restapi.testing import RelativeSession

# from Products.CMFPlone.interfaces import ISelectableConstrainTypes
from transaction import commit

import unittest
from transaction import commit


# from Products.CMFPlone.interfaces import ISelectableConstrainTypes


class TestCartellaModulisticaSchema(unittest.TestCase):
Expand Down

0 comments on commit 981effd

Please sign in to comment.