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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user