revert r33488 (Register the event subscribers for the correct interfaces in Plone 3.), since this is breaking 13 tests.
svn path=/plone.app.discussion/trunk/; revision=33808
This commit is contained in:
parent
348b74fd17
commit
fde7f2f828
@ -1,76 +1,37 @@
|
|||||||
<configure
|
<configure
|
||||||
xmlns="http://namespaces.zope.org/zope"
|
xmlns="http://namespaces.zope.org/zope"
|
||||||
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
||||||
i18n_domain="plone.app.discussion">
|
i18n_domain="plone.app.discussion">
|
||||||
|
|
||||||
<!-- Event subscribers -->
|
<!-- Event subscribers -->
|
||||||
|
|
||||||
<configure zcml:condition="not-installed zope.app.container">
|
<subscriber
|
||||||
|
for="plone.app.discussion.interfaces.IComment
|
||||||
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||||
|
handler=".comment.notify_workflow"
|
||||||
|
/>
|
||||||
|
|
||||||
<subscriber
|
<subscriber
|
||||||
for="plone.app.discussion.interfaces.IComment
|
for="plone.app.discussion.interfaces.IComment
|
||||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||||
handler=".comment.notify_workflow"
|
handler=".comment.notify_content_object"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<subscriber
|
<subscriber
|
||||||
for="plone.app.discussion.interfaces.IComment
|
for="plone.app.discussion.interfaces.IComment
|
||||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
||||||
handler=".comment.notify_content_object"
|
handler=".comment.notify_content_object"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<subscriber
|
<subscriber
|
||||||
for="plone.app.discussion.interfaces.IComment
|
for="plone.app.discussion.interfaces.IComment
|
||||||
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||||
handler=".comment.notify_content_object"
|
handler=".tool.index_object"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<subscriber
|
<subscriber
|
||||||
for="plone.app.discussion.interfaces.IComment
|
for="plone.app.discussion.interfaces.IComment
|
||||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
||||||
handler=".tool.index_object"
|
handler=".tool.unindex_object"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<subscriber
|
|
||||||
for="plone.app.discussion.interfaces.IComment
|
|
||||||
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
|
||||||
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>
|
</configure>
|
||||||
|
Loading…
Reference in New Issue
Block a user