diff --git a/src/iosanita/contenttypes/indexers/news.py b/src/iosanita/contenttypes/indexers/news.py index 555049b..cd16fbe 100644 --- a/src/iosanita/contenttypes/indexers/news.py +++ b/src/iosanita/contenttypes/indexers/news.py @@ -29,4 +29,6 @@ def news_service(context, **kw): @indexer(INewsItem) def news_venue(context, **kw): strutture = context.strutture_correlate - return [struttura.UID() for struttura in filter(bool, [x.to_object for x in strutture])] + return [ + struttura.UID() for struttura in filter(bool, [x.to_object for x in strutture]) + ] diff --git a/src/iosanita/contenttypes/restapi/services/types/get.py b/src/iosanita/contenttypes/restapi/services/types/get.py index 7ad93f9..631f9ce 100644 --- a/src/iosanita/contenttypes/restapi/services/types/get.py +++ b/src/iosanita/contenttypes/restapi/services/types/get.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- from iosanita.contenttypes import _ + # from iosanita.contenttypes.controlpanels.geolocation_defaults import ( # IGeolocationDefaults, # ) -from plone import api +# from plone import api from plone.restapi.services.types.get import TypesGet as BaseGet from zope.i18n import translate from zope.interface import implementer