Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Oct 10, 2024
1 parent a0820a9 commit 919e92f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plone/app/event/adapters.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from plone.app.contentlisting.realobject import RealContentListingObject
from plone.app.contentlisting.interfaces import IContentListingObject
from plone.app.contentlisting.realobject import RealContentListingObject
from zope.interface import implementer


@implementer(IContentListingObject)
class OcurrenceContentListingObject(RealContentListingObject):
class OccurrenceContentListingObject(RealContentListingObject):

def __getattr__(self, name):
"""We'll override getattr so that we can defer name lookups to
Expand Down
2 changes: 1 addition & 1 deletion plone/app/event/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@


<adapter
factory=".adapters.OcurrenceContentListingObject"
factory=".adapters.OccurrenceContentListingObject"
for="plone.event.interfaces.IOccurrence"
zcml:condition="installed plone.app.contentlisting"
/>
Expand Down
5 changes: 3 additions & 2 deletions plone/app/event/tests/test_recurrence.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from OFS.SimpleItem import SimpleItem
from plone.app.contentlisting.interfaces import IContentListingObject
from plone.app.event.base import get_events
from plone.app.event.base import RET_MODE_ACCESSORS, RET_MODE_OBJECTS
from plone.app.event.base import RET_MODE_ACCESSORS
from plone.app.event.base import RET_MODE_OBJECTS
from plone.app.event.dx.traverser import OccurrenceTraverser
from plone.app.event.recurrence import Occurrence
from plone.app.event.testing import PAEvent_INTEGRATION_TESTING
Expand All @@ -11,7 +13,6 @@
from plone.app.event.testing import set_timezone
from plone.app.event.tests.base_setup import AbstractSampleDataEvents
from plone.app.event.tests.base_setup import patched_now
from plone.app.contentlisting.interfaces import IContentListingObject
from plone.app.testing import setRoles
from plone.app.testing import TEST_USER_ID
from plone.app.testing import TEST_USER_PASSWORD
Expand Down

0 comments on commit 919e92f

Please sign in to comment.