quintagroup.formlib.captcha

quintagroup.formlib.captcha product - allows to add captcha to the zope.formlib forms. As a result such forms are prevented from automatic submit.

quintagroup.formlib.captcha is a package that allows to add captcha to the zope.formlib forms. As a result such forms are prevented from automatic submit.

quintagroup.formlib.captcha is based on quintagroup.captcha.core package.

Captchas in a formlib form

Using quintagroup.formlib.captcha in a formlib form is simple. Just add a Captcha field to your schema, and away you go:

    >>> from zope.interface import Interface
    >>> from quintagroup.formlib.captcha import Captcha
    >>> class CaptchaSchema(Interface):
    ...     captcha = Captcha(
    ...         title=_(u'Type the code'),
    ...         description=_(u'Type the code from the picture shown below.'))

and formlib will take care of the rest. The widget associated with this field will render the captcha and verify the use input automatically.

Supported Plone versions

  • Plone 3.x
  • Plone 4.0

Authors

  • Andriy Mylenkyi
  • Vitaliy Stepanov
  • Mykola Kharechko

Links

Connect with our experts Let's talk