|
Last change
on this file since 2807 was
2223,
checked in by olha, 16 years ago
|
|
README file updated with usage exmaple.
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | Introduction |
|---|
| 2 | ============ |
|---|
| 3 | |
|---|
| 4 | quintagroup.formlib.captcha is a package that allows to add captcha to zope.formlib. |
|---|
| 5 | As a result such forms are prevented from automatic submit. |
|---|
| 6 | |
|---|
| 7 | Captchas in a formlib form |
|---|
| 8 | -------------------------- |
|---|
| 9 | |
|---|
| 10 | Using quintagroup.formlib.captcha in a formlib form is simple. Just add a |
|---|
| 11 | Captcha field to your schema, and away you go: |
|---|
| 12 | |
|---|
| 13 | >>> from zope.interface import Interface |
|---|
| 14 | >>> from quintagroup.formlib.captcha.form import Captcha |
|---|
| 15 | >>> class CaptchaSchema(Interface): |
|---|
| 16 | ... captcha = Captcha( |
|---|
| 17 | ... title=_(u'Type the code'), |
|---|
| 18 | ... description=_(u'Type the code from the picture shown below.')) |
|---|
| 19 | |
|---|
| 20 | and formlib will take care of the rest. The widget associated with this field |
|---|
| 21 | will render the captcha and verify the use input automatically. |
|---|
| 22 | |
|---|
| 23 | Supported Plone versions |
|---|
| 24 | ------------------------ |
|---|
| 25 | |
|---|
| 26 | quintagroup.formlib.captcha was tested with Plone 3.0.6, 3.1.7, 3.2.3, 3.3.4. |
|---|
| 27 | |
|---|
| 28 | Authors |
|---|
| 29 | ------- |
|---|
| 30 | |
|---|
| 31 | * Vitaliy Podoba |
|---|
| 32 | * Andriy Mylenkyi |
|---|
| 33 | * Vitaliy Stepanov |
|---|
| 34 | |
|---|
| 35 | Copyright (c) "Quintagroup": http://quintagroup.com, 2004-2010 |
|---|
Note: See
TracBrowser
for help on using the repository browser.