Put email notification subscribers into their own zcml file so it is easier for integrators to override them.
svn path=/plone.app.discussion/trunk/; revision=38981
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<include package="plone.indexer" />
|
||||
|
||||
<include file="permissions.zcml" />
|
||||
<include file="notifications.zcml" />
|
||||
<include file="subscribers.zcml" />
|
||||
<include package=".browser" />
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:zcml="http://namespaces.zope.org/zcml"
|
||||
i18n_domain="plone.app.discussion">
|
||||
|
||||
<!-- Plone 3 Event Subscribers -->
|
||||
|
||||
<configure zcml:condition="not-installed zope.app.container">
|
||||
|
||||
<!--
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_user"
|
||||
/>
|
||||
-->
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_moderator"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
||||
|
||||
<!-- Plone 4 Event Subscribers -->
|
||||
|
||||
<configure zcml:condition="installed zope.app.container">
|
||||
|
||||
<!--
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_user"
|
||||
/>
|
||||
-->
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_moderator"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
||||
</configure>
|
||||
@@ -36,20 +36,6 @@
|
||||
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
|
||||
handler=".tool.unindex_object"
|
||||
/>
|
||||
|
||||
<!--
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_user"
|
||||
/>
|
||||
-->
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.lifecycleevent.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_moderator"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="Products.CMFCore.interfaces.IContentish
|
||||
@@ -94,20 +80,6 @@
|
||||
handler=".tool.unindex_object"
|
||||
/>
|
||||
|
||||
<!--
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_user"
|
||||
/>
|
||||
-->
|
||||
|
||||
<subscriber
|
||||
for="plone.app.discussion.interfaces.IComment
|
||||
zope.app.container.interfaces.IObjectAddedEvent"
|
||||
handler=".comment.notify_moderator"
|
||||
/>
|
||||
|
||||
<subscriber
|
||||
for="Products.CMFCore.interfaces.IContentish
|
||||
zope.app.container.interfaces.IObjectRemovedEvent"
|
||||
|
||||
Reference in New Issue
Block a user