Package turbogears :: Module validators

Module validators

source code

Convenient validators and converters for data coming in from the web.

This module also imports everything from formencode.validators, so all common validation routines are available here.

Classes
  TgFancyValidator
**Messages**
  Money
Validate a monetary value with currency.
  Number
Validate a decimal number.
  DateTimeConverter
Convert between Python datetime objects and strings.
  FieldStorageUploadConverter
**Messages**
  MultipleSelection
A default validator for SelectionFields with multiple selection.
  Schema
Modified Schema validator for TurboGears.
  JSONValidator
A validator for JSON format.
Functions
 
StateProvince(*kw, **kwargs) source code
 
PhoneNumber(*kw, **kwargs) source code
 
PostalCode(*kw, **kwargs) source code
 
IPhoneNumberValidator(*kw, **kwargs) source code
 
_(s) source code
 
strftime_before1900(dt, fmt)
strftime implementation supporting proleptic Gregorian dates before 1900.
source code
Variables
  __package__ = 'turbogears'
Function Details

strftime_before1900(dt, fmt)

source code 

strftime implementation supporting proleptic Gregorian dates before 1900.

See Also: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/306860