Package web2py :: Package gluon :: Module validators :: Class IS_STRONG
[hide private]
[frames] | no frames]

Class IS_STRONG

source code

object --+
         |
        IS_STRONG

example:
   INPUT(_type='password', _name='passwd',
       requires=IS_STRONG(min=10, special=2, upper=2))
enforces complexity requirements on a field

Instance Methods [hide private]
 
__init__(self, min=8, max=20, upper=1, lower=1, number=1, special=1, specials='~!@#$%^&*()_+-=?<>,.:;{}[]|', invalid=' "', error_message=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, value) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, min=8, max=20, upper=1, lower=1, number=1, special=1, specials='~!@#$%^&*()_+-=?<>,.:;{}[]|', invalid=' "', error_message=1)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)