From 96ab8fed585baff83cf69cc788ac3ae2019bb9b4 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Thu, 5 Dec 2024 09:41:31 +0100 Subject: [PATCH] isort --- src/redturtle/volto/patches.py | 14 +++++++------- src/redturtle/volto/restapi/services/search/get.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/redturtle/volto/patches.py b/src/redturtle/volto/patches.py index b45d535..6d91618 100644 --- a/src/redturtle/volto/patches.py +++ b/src/redturtle/volto/patches.py @@ -1,22 +1,22 @@ # These are patches not managed by collective.monkeypatcher -from Products.CMFPlone.controlpanel.browser import redirects +from experimental.noacquisition import config +from plone.app.content.browser.vocabulary import PERMISSIONS from plone.app.redirector.interfaces import IRedirectionStorage +from plone.folder.nogopip import GopipIndex from Products.CMFCore.utils import getToolByName +from Products.CMFPlone.controlpanel.browser import redirects +from Products.ZCatalog.Catalog import Catalog +from redturtle.volto.catalogplan import Catalog_sorted_search_indexes from urllib.parse import urlparse from zope.component import getUtility from zope.component.hooks import getSite from zope.i18nmessageid import MessageFactory -from plone.app.content.browser.vocabulary import PERMISSIONS -from plone.folder.nogopip import GopipIndex -from Products.ZCatalog.Catalog import Catalog -from redturtle.volto.catalogplan import Catalog_sorted_search_indexes from ZTUtils.Lazy import LazyCat from ZTUtils.Lazy import LazyMap -from experimental.noacquisition import config - import logging + logger = logging.getLogger(__name__) _ = MessageFactory("plone") diff --git a/src/redturtle/volto/restapi/services/search/get.py b/src/redturtle/volto/restapi/services/search/get.py index dc90864..9de593a 100644 --- a/src/redturtle/volto/restapi/services/search/get.py +++ b/src/redturtle/volto/restapi/services/search/get.py @@ -8,9 +8,9 @@ from redturtle.volto.interfaces import IRedTurtleVoltoSettings from zope.component import getMultiAdapter - import logging + logger = logging.getLogger(__name__) # search for 'ranking' in 'SearchableText' and rank very high