2010-06-10 16:57:03 +02:00
|
|
|
<configure
|
|
|
|
xmlns="http://namespaces.zope.org/zope"
|
2010-12-16 00:52:56 +01:00
|
|
|
xmlns:meta="http://namespaces.zope.org/meta"
|
2010-06-10 16:57:03 +02:00
|
|
|
xmlns:zcml="http://namespaces.zope.org/zcml"
|
|
|
|
i18n_domain="plone.app.discussion">
|
|
|
|
|
|
|
|
<!-- Captcha comment form extender -->
|
|
|
|
<configure zcml:condition="have plone.app.discussion-captcha">
|
2010-12-16 00:52:56 +01:00
|
|
|
<!--
|
2010-06-10 16:57:03 +02:00
|
|
|
Register the Captcha form extender and validator only if there are
|
|
|
|
plugins installed that declare to implement a Captcha solution for
|
2010-12-16 00:52:56 +01:00
|
|
|
plone.app.discussion (e.g. plone.formwidget.captcha and
|
|
|
|
plone.formwidget.recaptcha).
|
2010-06-10 16:57:03 +02:00
|
|
|
-->
|
|
|
|
<adapter
|
|
|
|
factory=".captcha.Captcha"
|
|
|
|
provides="plone.app.discussion.interfaces.ICaptcha" />
|
|
|
|
<adapter
|
|
|
|
factory=".captcha.CaptchaExtender"
|
|
|
|
provides="plone.z3cform.fieldsets.interfaces.IFormExtender" />
|
|
|
|
<adapter
|
2010-06-14 14:42:28 +02:00
|
|
|
factory=".validator.CaptchaValidator"
|
2010-12-15 23:59:24 +01:00
|
|
|
provides="z3c.form.interfaces.IValidator"
|
2010-06-10 16:57:03 +02:00
|
|
|
/>
|
|
|
|
</configure>
|
|
|
|
|
2010-07-13 11:24:23 +02:00
|
|
|
<!-- Akismet Validator -->
|
|
|
|
<configure zcml:condition="installed collective.akismet">
|
|
|
|
<adapter
|
|
|
|
factory="collective.akismet.validator.AkismetValidator"
|
|
|
|
provides="z3c.form.interfaces.IValidator"
|
2010-12-16 00:52:56 +01:00
|
|
|
/>
|
2010-07-13 11:24:23 +02:00
|
|
|
</configure>
|
2010-12-16 00:52:56 +01:00
|
|
|
|
|
|
|
</configure>
|