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.
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
Metadata
Release files for quintagroup.z3cform.captcha 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quintagroup.z3cform.captcha-1.0.3.zip | 20.5 kB | Without provenance | Details for quintagroup.z3cform.captcha-1.0.3.zip |
Release files / quintagroup.z3cform.captcha-1.0.3.zip
| Download URL | quintagroup.z3cform.captcha-1.0.3.zip |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b52f0026b0365bce7ee6598f7d60f6f1442c22bde41d162bb09c4c2de210f9a
|
|
BLAKE2b-256 checksum How to use checksums |
7ce2957b83478f12c4250aff2fd87eb9de504590da94e77a5da70e85d3d1a1d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for quintagroup.z3cform.captcha 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.