Skip to content

Commit

Permalink
black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Mar 21, 2024
1 parent b4b6c27 commit 2b969bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions src/redturtle/volto/adapters/namechooser.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
from Acquisition import aq_inner
from plone import api
from plone.app.content.namechooser import (
NormalizingNameChooser as BaseNormalizingNameChooser,
)
from plone import api
from plone.app.redirector.interfaces import IRedirectionStorage
from zope.component import getUtility
from zExceptions import BadRequest
from Acquisition import aq_inner
from redturtle.volto import _
from redturtle.volto.interfaces import IRedTurtleVoltoSettings
from zExceptions import BadRequest
from zope.component import getUtility


class NormalizingNameChooser(BaseNormalizingNameChooser):

def chooseName(self, name, obj):
"""
Additional check: the id should not be in redirection tool.
Expand Down
6 changes: 3 additions & 3 deletions src/redturtle/volto/tests/test_namechooser_customization.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""Setup tests for this package."""
from redturtle.volto.testing import REDTURTLE_VOLTO_INTEGRATION_TESTING
from plone import api
from plone.app.testing import setRoles
from plone.app.testing import TEST_USER_ID
from zope.container.interfaces import INameChooser
from zExceptions import BadRequest
from redturtle.volto.interfaces import IRedTurtleVoltoSettings
from redturtle.volto.testing import REDTURTLE_VOLTO_INTEGRATION_TESTING
from zExceptions import BadRequest
from zope.container.interfaces import INameChooser

import unittest

Expand Down

0 comments on commit 2b969bc

Please sign in to comment.