https://github.com/codesyntax/quintagroup.formlib.captcha
Original code imported from http://svn.quintagroup.com/products/quintagroup.formlib.captcha/trunk/
https://github.com/codesyntax/quintagroup.formlib.captcha
Last synced: over 1 year ago
JSON representation
Original code imported from http://svn.quintagroup.com/products/quintagroup.formlib.captcha/trunk/
- Host: GitHub
- URL: https://github.com/codesyntax/quintagroup.formlib.captcha
- Owner: codesyntax
- Created: 2017-03-21T16:34:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T16:44:19.000Z (over 9 years ago)
- Last Synced: 2025-01-25T07:27:26.310Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Introduction
============
quintagroup.formlib.captcha is a package that allows to add captcha to zope.formlib.
As a result such forms are prevented from automatic submit.
Get a Recaptcha key
-------------------
Go to `Google Recaptcha`_ and register a new key.
To to your portal and add 2 new properties with the following names, and enter there
the keys obtained from Google Recaptcha site: RECAPTCHA_SITEKEY and RECAPTCHA_SECRET.
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
------------------------
quintagroup.formlib.captcha was tested with Plone 3.x and Plone 4.x.
Authors
-------
* Vitaliy Podoba
* Andriy Mylenkyi
* Vitaliy Stepanov
* Mikel Larreategi
Copyright (c) "Quintagroup": http://quintagroup.com, 2004-2017
.. _`Google Recaptcha`: https://www.google.com/recaptcha/admin