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=global_settings.applications_parent, lower=global_settings.applications_parent, number=global_settings.applications_parent, special=global_settings.applications_parent, specials=`'``~!@#$%^&*()_+-=?<>,.:;{}[]|``'`, invalid=`'``"``'`, error_message=global_settings.applications_parent)
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=global_settings.applications_parent, lower=global_settings.applications_parent, number=global_settings.applications_parent, special=global_settings.applications_parent, specials=`'``~!@#$%^&*()_+-=?<>,.:;{}[]|``'`, invalid=`'``"``'`, error_message=global_settings.applications_parent)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
  (inherited documentation)