Automatically load the ZCML files of the captcha widgets if they are installed.

svn path=/plone.app.discussion/trunk/; revision=33498
This commit is contained in:
Hanno Schlichting
2010-01-27 16:14:35 +00:00
parent 29a81f0717
commit 034d0a93ad
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -3,6 +3,7 @@
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:monkey="http://namespaces.plone.org/monkey"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="plone.app.discussion">
<include package="plone.indexer" />
@@ -62,6 +63,14 @@
<utility component=".vocabularies.captcha_vocabulary"
name="plone.app.discussion.vocabularies.CaptchaVocabulary" />
<configure zcml:condition="installed plone.formwidget.captcha">
<include package="plone.formwidget.captcha" />
</configure>
<configure zcml:condition="installed plone.formwidget.recaptcha">
<include package="plone.formwidget.recaptcha" />
</configure>
<!-- Conversation indexes -->
<adapter name="total_comments" factory=".catalog.total_comments" />
<adapter name="last_comment_date" factory=".catalog.last_comment_date" />