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:
Timo Stollenwerk
2010-08-26 09:31:49 +00:00
parent a2c89ed5e8
commit 61565de95a
4 changed files with 52 additions and 28 deletions
+47
View File
@@ -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>