Package gluon :: Module tools :: Class Recaptcha
[hide private]
[frames] | no frames]

Class Recaptcha

source code

       object --+        
                |        
html.XmlComponent --+    
                    |    
             html.DIV --+
                        |
                       Recaptcha


Usage:

    form = FORM(Recaptcha(public_key='...',private_key='...'))

or

    form = SQLFORM(...)
    form.append(Recaptcha(public_key='...',private_key='...'))

Instance Methods [hide private]
 
__init__(self, request=None, public_key='', private_key='', use_ssl=False, error=None, error_message='invalid', label='Verify:', options='', comment='', ajax=False)
Args: components: any components that should be nested in this element attributes: any attributes you want to give to this element
source code
 
_validate(self)
nothing to validate yet.
source code
 
xml(self)
generates the xml for this component.
source code

Inherited from html.DIV: __delitem__, __getitem__, __len__, __nonzero__, __setitem__, __str__, append, element, elements, flatten, insert, sibling, siblings, update

Inherited from html.XmlComponent: __add__, __mul__, add_class, remove_class

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  API_SSL_SERVER = 'https://www.google.com/recaptcha/api'
  API_SERVER = 'http://www.google.com/recaptcha/api'
  VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify'

Inherited from html.DIV: regex_attr, regex_class, regex_id, regex_tag, tag

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, request=None, public_key='', private_key='', use_ssl=False, error=None, error_message='invalid', label='Verify:', options='', comment='', ajax=False)
(Constructor)

source code 

Args:
    components: any components that should be nested in this element
    attributes: any attributes you want to give to this element

Raises:
    SyntaxError: when a stand alone tag receives components

Overrides: object.__init__
(inherited documentation)

_validate(self)

source code 

nothing to validate yet. May be overridden by subclasses

Overrides: html.DIV._validate
(inherited documentation)

xml(self)

source code 

generates the xml for this component.

Overrides: html.XmlComponent.xml