Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.3 (2013-07-17)

  • Disabled handling in-line validation requests

1.0.2 (2013-01-16)

  • PPP fixes
  • Fixed Exception for python 2.4
  • removed unused import
  • Updated classifiers
  • fixed ViewPageTemplateFile import

1.0.1 (2011-10-28)

  • Fixed kss inline validation

1.0 (2010-04-29)

  • Initial release
Release History

Release History

This version
History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
quintagroup.z3cform.captcha-1.0.3.zip (20.5 kB) Copy SHA256 Checksum SHA256 Source Jul 19, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting