f0fb6514c7
svn path=/plone.app.discussion/branches/notification/; revision=33921
89 lines
2.7 KiB
XML
89 lines
2.7 KiB
XML
<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"
|
|
handler=".comment.notify_workflow"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
|
handler=".comment.notify_content_object"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
|
handler=".comment.notify_content_object"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
|
handler=".tool.index_object"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
|
handler=".tool.unindex_object"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
|
handler=".comment.notify_moderator"
|
|
/>
|
|
|
|
</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"
|
|
/>
|
|
|
|
<subscriber
|
|
for="plone.app.discussion.interfaces.IComment
|
|
zope.app.container.interfaces.IObjectAddedEvent"
|
|
handler=".comment.notify_moderator"
|
|
/>
|
|
|
|
</configure>
|
|
|
|
</configure>
|