2014-04-16 17:54:19 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
|
|
|
xmlns:zcml="http://namespaces.zope.org/zcml">
|
|
|
|
|
2014-04-17 13:57:41 +02:00
|
|
|
<!-- Content Rules events -->
|
2014-04-16 17:54:19 +02:00
|
|
|
<configure zcml:condition="installed plone.contentrules">
|
|
|
|
|
|
|
|
<interface
|
|
|
|
interface="plone.app.discussion.interfaces.ICommentAddedEvent"
|
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Comment added"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<interface
|
|
|
|
interface="plone.app.discussion.interfaces.ICommentRemovedEvent"
|
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Comment removed"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<interface
|
|
|
|
interface="plone.app.discussion.interfaces.IReplyAddedEvent"
|
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Comment reply added"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<interface
|
|
|
|
interface="plone.app.discussion.interfaces.IReplyRemovedEvent"
|
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Comment reply removed"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</configure>
|
|
|
|
|
|
|
|
|
2014-04-17 13:57:41 +02:00
|
|
|
<!-- Content rules subscribers -->
|
2014-04-16 17:54:19 +02:00
|
|
|
<configure zcml:condition="installed plone.app.contentrules">
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.ICommentAddedEvent"
|
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.ICommentRemovedEvent"
|
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IReplyAddedEvent"
|
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
|
|
|
for="plone.app.discussion.interfaces.IReplyRemovedEvent"
|
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</configure>
|
|
|
|
|
|
|
|
</configure>
|