comments added.
svn path=/plone.formwidget.captcha/trunk/; revision=28732
This commit is contained in:
parent
a76a7f76a6
commit
34cccbdfdc
|
@ -3,18 +3,20 @@
|
|||
xmlns:browser="http://namespaces.zope.org/browser"
|
||||
i18n_domain="plone.formwidget.captcha">
|
||||
|
||||
<!-- Captcha form -->
|
||||
<browser:page
|
||||
name="captcha_form"
|
||||
for="Products.CMFPlone.interfaces.siteroot.IPloneSiteRoot"
|
||||
class=".form.CaptchaForm"
|
||||
permission = "zope.Public" />
|
||||
|
||||
<!-- Captcha factory -->
|
||||
<adapter
|
||||
for="Products.CMFPlone.interfaces.siteroot.IPloneSiteRoot"
|
||||
provides=".form.ICaptchaForm"
|
||||
factory=".form.Captcha" />
|
||||
|
||||
<!-- Validators -->
|
||||
<!-- Captcha validator -->
|
||||
<adapter
|
||||
factory=".form.CaptchaValidator"
|
||||
/>
|
||||
|
|
|
@ -46,5 +46,5 @@ class BaseForm(form.Form):
|
|||
|
||||
CaptchaForm = wrap_form(BaseForm)
|
||||
|
||||
# Register Captcha Validator for the captcha field in the ICaptchaForm
|
||||
# Register Captcha validator for the captcha field in the ICaptchaForm
|
||||
validator.WidgetValidatorDiscriminators(CaptchaValidator, field=ICaptchaForm['captcha'])
|
Reference in New Issue