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"
|
|
|
|
/>
|
2018-09-27 11:26:41 +02:00
|
|
|
|
|
|
|
<interface
|
2018-10-24 16:49:22 +02:00
|
|
|
interface="plone.app.discussion.interfaces.ICommentPublishedEvent"
|
2018-09-27 11:26:41 +02:00
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Notify user on comment publication"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<interface
|
2018-10-24 16:49:22 +02:00
|
|
|
interface="plone.app.discussion.interfaces.ICommentDeletedEvent"
|
2018-09-27 11:26:41 +02:00
|
|
|
type="plone.contentrules.rule.interfaces.IRuleEventType"
|
|
|
|
name="Notify user on comment delete"
|
|
|
|
/>
|
2014-04-16 17:54:19 +02:00
|
|
|
|
|
|
|
</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"
|
|
|
|
/>
|
2018-09-27 11:26:41 +02:00
|
|
|
|
|
|
|
<subscriber
|
2018-10-24 16:49:22 +02:00
|
|
|
for="plone.app.discussion.interfaces.ICommentDeletedEvent"
|
2018-09-27 11:26:41 +02:00
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<subscriber
|
2018-10-24 16:49:22 +02:00
|
|
|
for="plone.app.discussion.interfaces.ICommentPublishedEvent"
|
2018-09-27 11:26:41 +02:00
|
|
|
handler=".contentrules.execute_comment"
|
|
|
|
/>
|
2014-04-16 17:54:19 +02:00
|
|
|
|
|
|
|
</configure>
|
|
|
|
|
2014-04-17 17:38:44 +02:00
|
|
|
<!-- Content rules strings -->
|
2014-04-18 15:42:06 +02:00
|
|
|
<configure zcml:condition="installed plone.stringinterp">
|
|
|
|
<adapter
|
|
|
|
for="zope.interface.Interface"
|
|
|
|
provides="plone.stringinterp.interfaces.IStringSubstitution"
|
|
|
|
factory=".contentrules.Id"
|
|
|
|
name="comment_id"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<adapter
|
|
|
|
for="zope.interface.Interface"
|
|
|
|
provides="plone.stringinterp.interfaces.IStringSubstitution"
|
|
|
|
factory=".contentrules.Text"
|
|
|
|
name="comment_text"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<adapter
|
|
|
|
for="zope.interface.Interface"
|
|
|
|
provides="plone.stringinterp.interfaces.IStringSubstitution"
|
|
|
|
factory=".contentrules.AuthorUserName"
|
|
|
|
name="comment_user_id"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<adapter
|
|
|
|
for="zope.interface.Interface"
|
|
|
|
provides="plone.stringinterp.interfaces.IStringSubstitution"
|
|
|
|
factory=".contentrules.AuthorFullName"
|
|
|
|
name="comment_user_fullname"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<adapter
|
|
|
|
for="zope.interface.Interface"
|
|
|
|
provides="plone.stringinterp.interfaces.IStringSubstitution"
|
|
|
|
factory=".contentrules.AuthorEmail"
|
|
|
|
name="comment_user_email"
|
|
|
|
/>
|
|
|
|
</configure>
|
2014-04-17 17:38:44 +02:00
|
|
|
|
2014-04-16 17:54:19 +02:00
|
|
|
</configure>
|