source: products/quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/browser/interfaces.py @ 1871

Last change on this file since 1871 was 1871, checked in by liebster, 14 years ago

Revert 2726 to 2589 commits for tagging plone-3 compatible version

File size: 602 bytes
Line 
1from zope.interface import Interface
2from zope.schema.interfaces import IASCIILine
3
4class ICaptchaView(Interface):
5    """ Captcha generating and verifying view that is wrapper around
6        captcha generation scripts located in skins folder.
7
8        Use the view from a page to generate an image tag ('image_tag' method)
9        and to verify user input ('verify' method).
10    """
11
12    def image_tag():
13        """Generate an image tag linking to a captcha"""
14
15    def verify(input):
16        """ Verify user input.
17        """
18
19class ICaptcha(IASCIILine):
20    u"""A field for captcha validation"""
Note: See TracBrowser for help on using the repository browser.