Factored out subscriber declarations into its own ZCML file.

svn path=/plone.app.discussion/trunk/; revision=33486
This commit is contained in:
Hanno Schlichting 2010-01-27 12:28:47 +00:00
parent 2f1a80c46b
commit 1b78a1839b
3 changed files with 39 additions and 32 deletions

View File

@ -4,6 +4,7 @@ Changelog
1.0b3 (XXXX-XX-XX) 1.0b3 (XXXX-XX-XX)
------------------ ------------------
* Factored out subscriber declarations into its own ZCML file. [hannosch]
* Bugfix for #2281226: Moderation View: Comments disappear when hitting the 'Apply' button without choosing a bulk action. [timo] * Bugfix for #2281226: Moderation View: Comments disappear when hitting the 'Apply' button without choosing a bulk action. [timo]
* Allow to show the full text of a comment in the moderation view. [timo] * Allow to show the full text of a comment in the moderation view. [timo]
* German translation added. [timo] * German translation added. [timo]

View File

@ -8,6 +8,7 @@
<include package="plone.indexer" /> <include package="plone.indexer" />
<include file="permissions.zcml" /> <include file="permissions.zcml" />
<include file="subscribers.zcml" />
<include package=".browser" /> <include package=".browser" />
<i18n:registerTranslations directory="locales" /> <i18n:registerTranslations directory="locales" />
@ -57,38 +58,6 @@
<adapter factory=".conversation.ConversationReplies" /> <adapter factory=".conversation.ConversationReplies" />
<adapter factory=".conversation.CommentReplies" /> <adapter factory=".conversation.CommentReplies" />
<!-- Event subscribers -->
<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"
/>
<!-- Captcha Vocabulary --> <!-- Captcha Vocabulary -->
<utility component=".vocabularies.captcha_vocabulary" <utility component=".vocabularies.captcha_vocabulary"
name="plone.app.discussion.vocabularies.CaptchaVocabulary" /> name="plone.app.discussion.vocabularies.CaptchaVocabulary" />

View File

@ -0,0 +1,37 @@
<configure
xmlns="http://namespaces.zope.org/zope"
i18n_domain="plone.app.discussion">
<!-- Event subscribers -->
<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"
/>
</configure>