Skip to main content

Captcha field for z3cform based on quintagroup.captcha.core package

Project description

Introduction

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

Captchas in a z3c form

Using quintagroup.z3cform.captcha in a z3c.form form is simple. Just add a Captcha field to your schema, use CaptchaWidgetFactory widget factory for this field and away you go:

>>> from zope.interface import Interface
>>> from z3c.form import form, field
>>> from quintagroup.z3cform.captcha import Captcha
>>> from quintagroup.z3cform.captcha import CaptchaWidgetFactory

Now define form schema with Captch field

>>> class ICaptchaSchema(Interface):
...     captcha = Captcha(
...         title=_(u'Type the code'),
...         description=_(u'Type the code from the picture shown below.'))

And set proper widget factory for the captcha field

>>>  class CaptchaForm(form.Form):
...      fields = field.Fields(ICaptchaSchema)
...      fields['captcha'].widgetFactory = CaptchaWidgetFactory

and z3c.form 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

quintagroup.z3cform.captcha was tested with Plone 3.0.6, 3.1.7, 3.2.3, 3.3.4.

Authors

  • Taras Melnychuk

  • Andriy Mylenkyi

  • Vitaliy Stepanov

Copyright (c) “Quintagroup”: http://quintagroup.com, 2004-2010

Changelog

1.0 (2010-04-29)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quintagroup.z3cform.captcha-1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

quintagroup.z3cform.captcha-1.0-py2.4.egg (16.0 kB view details)

Uploaded Source

File details

Details for the file quintagroup.z3cform.captcha-1.0.tar.gz.

File metadata

File hashes

Hashes for quintagroup.z3cform.captcha-1.0.tar.gz
Algorithm Hash digest
SHA256 0dc3968cf9d74687add7b133f1ea7822f14ce2e65254ca37572686e8ee4b1824
MD5 324622493bdd89060eaf4fd012b345d0
BLAKE2b-256 27b5e0510802dc28c8408f865ef31152ecdd3f273d128b399b85b837e5a45f33

See more details on using hashes here.

File details

Details for the file quintagroup.z3cform.captcha-1.0-py2.4.egg.

File metadata

File hashes

Hashes for quintagroup.z3cform.captcha-1.0-py2.4.egg
Algorithm Hash digest
SHA256 cd747769601fe167125370fdb72905e894150bb82f935521df672d84a659ebd9
MD5 e6907338e08086ea253af28798c76868
BLAKE2b-256 9f91ef91163859ef0da2991cdf6d8fc14280aa6996bb1de35bd228cc3a2f5bce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page