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

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

Added captcha in registation form by plone4

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