Changeset 1860 in products


Ignore:
Timestamp:
Mar 9, 2010 6:03:25 PM (14 years ago)
Author:
liebster
Message:

Added captcha in registation form by plone4

Location:
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/browser/configure.zcml

    r871 r1860  
    22    xmlns="http://namespaces.zope.org/zope" 
    33    xmlns:browser="http://namespaces.zope.org/browser" 
     4    xmlns:zcml="http://namespaces.zope.org/zcml" 
    45    i18n_domain="quintagroup.plonecaptchas"> 
    56 
     
    2021        /> 
    2122 
     23    <!-- Join form definition --> 
     24    <browser:page 
     25        zcml:condition="installed plone.app.users" 
     26        name="register" 
     27        for="plone.app.layout.navigation.interfaces.INavigationRoot" 
     28        class=".register.CustomRegistrationForm" 
     29        permission="zope.Public" 
     30        layer=".interfaces.IPloneChaptchaLayer" 
     31        /> 
     32 
    2233</configure> 
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/browser/interfaces.py

    r871 r1860  
    11from zope.interface import Interface 
    22from zope.schema.interfaces import IASCIILine 
     3from plone.theme.interfaces import IDefaultPloneLayer 
    34 
    45class ICaptchaView(Interface): 
     
    1920class ICaptcha(IASCIILine): 
    2021    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 TracChangeset for help on using the changeset viewer.