source: products/quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/captcha.txt @ 2210

Last change on this file since 2210 was 2210, checked in by mylan, 14 years ago

Merged all changes from branches/captchas-refactoring into trunk.

Merged revisions 3004,3006,3094,3096-3099,3119-3120 via svnmerge from
http://svn.quintagroup.com/products/quintagroup.formlib.captcha/branches/captchas-refactoring

........

r3004 | liebster | 2010-03-22 16:16:05 +0200 (Mon, 22 Mar 2010) | 1 line


Remove egg info

........

r3006 | liebster | 2010-03-22 16:20:03 +0200 (Mon, 22 Mar 2010) | 1 line


Add depending quintagroup.captcha.core

........

r3094 | mylan | 2010-04-01 16:53:05 +0300 (Thu, 01 Apr 2010) | 1 line


#173: Fix wrong import, update package description, add zope.formlib as dependency

........

r3096 | mylan | 2010-04-01 17:39:30 +0300 (Thu, 01 Apr 2010) | 1 line


#173: update dependencies list in quintagroup.formlib.captcha package, commented for now

........

r3097 | mylan | 2010-04-01 18:48:49 +0300 (Thu, 01 Apr 2010) | 1 line


#173: Move quintagroup.formlib.captcha.form content into the quintagroup.formlib.captcha, add zope.app.form as direct requirement

........

r3098 | mylan | 2010-04-02 13:38:30 +0300 (Fri, 02 Apr 2010) | 1 line


#186: Remove needless namespace declarations in configure.zcml

........

r3099 | mylan | 2010-04-02 13:40:52 +0300 (Fri, 02 Apr 2010) | 1 line


#186: added tests for field and widget staff registration, for captcha widget operation

........

r3119 | mylan | 2010-04-08 16:42:00 +0300 (Thu, 08 Apr 2010) | 1 line


#186: Add dependency package include in configure.zcml

........

r3120 | mylan | 2010-04-08 16:42:34 +0300 (Thu, 08 Apr 2010) | 1 line


#186: Fixed registration tests

........

  • Property svn:eol-style set to native
File size: 636 bytes
Line 
1--------------------------
2Captchas in a formlib form
3--------------------------
4
5Using quintagroup.formlib.captcha in a formlib form is simple. Just add a
6Captcha field to your schema, and away you go:
7
8  >>> from zope.interface import Interface
9  >>> from quintagroup.formlib.captcha.form import Captcha
10  >>> class CaptchaSchema(Interface):
11  ...     captcha = Captcha(
12  ...         title=_(u'Type the code'),
13  ...         description=_(u'Type the code from the picture shown below.'))
14
15and formlib will take care of the rest. The widget associated with this field
16will render the captcha and verify the use input automatically.
17
Note: See TracBrowser for help on using the repository browser.