Ignore:
Timestamp:
Apr 29, 2010 7:50:35 AM (14 years ago)
Author:
olha
Message:

README file updated with usage exmaple.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.formlib.captcha/trunk/README.txt

    r2212 r2223  
    44quintagroup.formlib.captcha is a package that allows to add captcha to zope.formlib. 
    55As a result such forms are prevented from automatic submit. 
     6 
     7Captchas in a formlib form 
     8-------------------------- 
     9 
     10Using quintagroup.formlib.captcha in a formlib form is simple. Just add a 
     11Captcha 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 
     20and formlib will take care of the rest. The widget associated with this field  
     21will render the captcha and verify the use input automatically. 
    622 
    723Supported Plone versions 
Note: See TracChangeset for help on using the changeset viewer.