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> License: GPL v2

Classes [hide private]
  IS_MATCH
example:
  IS_EXPR
example:
  IS_LENGTH
example:
  IS_IN_SET
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_LOWER
  IS_UPPER
  IS_NULL_OR
  CLEANUP
example:
  CRYPT
example:
Functions [hide private]
 
IS_IN_DB(dbset, field, label=None, error_message='value not in database!')
example:
source code
Variables [hide private]
  have_hashlib = True
Function Details [hide private]

IS_IN_DB(dbset, field, label=None, error_message='value not in database!')

source code 

example:

INPUT(_type='text',_name='name',requires=IS_IN_DB(db,db.table))

used for reference fields, rendered as a dropbox