2010-01-27 13:28:47 +01:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
2010-02-06 16:48:23 +01:00
|
|
|
xmlns:zcml="http://namespaces.zope.org/zcml"
|
2010-01-27 13:28:47 +01:00
|
|
|
i18n_domain="plone.app.discussion">
|
|
|
|
|
|
|
|
<!-- Event subscribers -->
|
|
|
|
|
2010-02-06 16:48:23 +01:00
|
|
|
<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"
|
|
|
|
/>
|
2010-03-11 20:23:02 +01:00
|
|
|
|
|
|
|
<!--
|
2010-02-13 22:31:17 +01:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_user"
|
|
|
|
/>
|
2010-03-11 20:23:02 +01:00
|
|
|
-->
|
|
|
|
|
2010-02-11 22:05:28 +01:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_moderator"
|
|
|
|
/>
|
|
|
|
|
2010-02-06 16:48:23 +01:00
|
|
|
</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"
|
|
|
|
/>
|
|
|
|
|
2010-03-11 20:23:02 +01:00
|
|
|
<!--
|
2010-02-13 22:31:17 +01:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.interfaces.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_user"
|
|
|
|
/>
|
2010-03-11 20:23:02 +01:00
|
|
|
-->
|
2010-02-13 22:31:17 +01:00
|
|
|
|
2010-02-11 22:05:28 +01:00
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IComment
|
|
|
|
zope.app.container.interfaces.IObjectAddedEvent"
|
|
|
|
handler=".comment.notify_moderator"
|
|
|
|
/>
|
|
|
|
|
2010-02-06 16:48:23 +01:00
|
|
|
</configure>
|
2010-01-27 13:28:47 +01:00
|
|
|
|
|
|
|
</configure>
|