Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Aug 14, 2024
1 parent c077e2e commit f79a3bb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/iosanita/policy/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from iosanita.policy import _
from plone.restapi.controlpanels.interfaces import IControlpanel
from zope.interface import Interface
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from zope.schema import Bool
from zope.schema import List
from zope.schema import SourceText
Expand Down
2 changes: 1 addition & 1 deletion src/iosanita/policy/restapi/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:plone="http://namespaces.plone.org/plone"
>

<include package="plone.restapi"/>
<include package="plone.restapi" />
<include package=".services" />

<!-- enable controlpanel on plone.restapi -->
Expand Down
16 changes: 16 additions & 0 deletions src/iosanita/policy/restapi/controlpanel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from iosanita.policy.interfaces import IIosanitaPolicyLayer
from iosanita.policy.interfaces import IIoSanitaSettings
from iosanita.policy.interfaces import IIoSanitaSettingsControlpanel
from plone.restapi.controlpanels import RegistryConfigletPanel
from zope.component import adapter
from zope.interface import implementer
from zope.interface import Interface


@adapter(Interface, IIosanitaPolicyLayer)
@implementer(IIoSanitaSettingsControlpanel)
class IoSanitaSettingsControlpanel(RegistryConfigletPanel):
schema = IIoSanitaSettings
configlet_id = "IoSanitaSettings"
configlet_category_id = "Products"
schema_prefix = None
2 changes: 1 addition & 1 deletion src/iosanita/policy/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import collective.volto.slimheader
import iosanita.contenttypes
import iosanita.policy
import souper.plone
import plone.app.caching
import souper.plone


class TestLayer(ContentTypesTestLayer):
Expand Down

0 comments on commit f79a3bb

Please sign in to comment.