Package turbogears :: Module validators
[hide private]

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 [hide private]
  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 [hide private]
 
_(s) source code
 
_findall(text, substr) source code
 
strftime_before1900(dt, fmt)
strftime implementation supporting proleptic Gregorian dates before 1900.
source code
Variables [hide private]
  _illegal_s = re.compile(r'((^|[^%])(%%)*%s)')
Function Details [hide private]

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