Skip to content

Commit

Permalink
provide an IContentListingObject adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Sep 12, 2024
1 parent bc1bb12 commit 7426601
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news/410.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Provide an IContentListingObject adapter
[erral]
5 changes: 5 additions & 0 deletions plone/app/event/adapters.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from plone.app.contentlisting.realobject import RealContentListingObject


class OcurrenceContentListingObject(RealContentListingObject):
pass
7 changes: 7 additions & 0 deletions plone/app/event/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@
name="plone.app.event"
/>


<adapter
factory=".adapters.OcurrenceContentListingObject"
for="plone.event.interfaces.IOcurrence"
zcml:condition="installed plone.app.contentlisting"
/>

</configure>

0 comments on commit 7426601

Please sign in to comment.