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

Module validators

source code

This file is part of web2py Web Framework (Copyrighted, 2007) Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu> Thanks to ga2arch for help with IS_IN_DB and IS_NOT_IN_DB on GAE License: GPL v2

Classes [hide private]
  IS_MATCH
example:
  IS_EXPR
example:
  IS_LENGTH
example:
  IS_IN_SET
example:
  IS_IN_DB
example:
  IS_NOT_IN_DB
example:
  IS_INT_IN_RANGE
example:
  IS_FLOAT_IN_RANGE
example:
  IS_NOT_EMPTY
example:
  IS_ALPHANUMERIC
example:
  IS_EMAIL
example:
  IS_URL
example:
  IS_TIME
example:
  IS_DATE
example:
  IS_DATETIME
example:
  IS_LIST_OF
  IS_LOWER
  IS_UPPER
  IS_NULL_OR
  CLEANUP
example:
  CRYPT
example:
Variables [hide private]
  have_hashlib = True
  regex1 = re.compile(r'[\w_]+\.[\w_]+')
  regex2 = re.compile(r'%\((?P<name>[^\)]+)\)s')
  regex_time = re.compile(r'((?P<h>[0-9]+))([^0-9 ]+(?P<m>[0-9 ]...
Variables Details [hide private]

regex_time

Value:
re.compile(r'((?P<h>[0-9]+))([^0-9 ]+(?P<m>[0-9 ]+))?([^0-9ap ]+(?P<s>\
[0-9]*))?((?P<d>[ap]m))?')