Register the event subscribers for the correct interfaces in Plone 3.
svn path=/plone.app.discussion/trunk/; revision=33488
This commit is contained in:
parent
1b78a1839b
commit
efc60b2620
@ -4,6 +4,7 @@ Changelog
|
||||
1.0b3 (XXXX-XX-XX)
|
||||
------------------
|
||||
|
||||
* Register the event subscribers for the correct interfaces in Plone 3. [hannosch]
|
||||
* Factored out subscriber declarations into its own ZCML file. [hannosch]
|
||||
* Bugfix for #2281226: Moderation View: Comments disappear when hitting the 'Apply' button without choosing a bulk action. [timo]
|
||||
* Allow to show the full text of a comment in the moderation view. [timo]
|
||||
|
@ -1,9 +1,12 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:zcml="http://namespaces.zope.org/zcml"
|
||||
i18n_domain="plone.app.discussion">
|
||||
|
||||
<!-- Event subscribers -->
|
||||
|
||||
<configure zcml:condition="not-installed zope.app.container">
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||
@ -34,4 +37,40 @@
|
||||
handler=".tool.unindex_object"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
||||
<configure zcml:condition="installed zope.app.container">
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_workflow"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_content_object"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectRemovedEvent"
|
||||
handler=".comment.notify_content_object"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".tool.index_object"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectRemovedEvent"
|
||||
handler=".tool.unindex_object"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
||||
</configure>
|
||||
|
Loading…
Reference in New Issue
Block a user