Package tdi :: Package tools :: Package htmlform :: Module _main
[frames] | no frames]

Module _main

source code

Form helper classes.


Author: André Malo

Classes
  HTMLForm
HTML form helper class
Functions
basestring
normalize_newlines(value)
Normalize the newlines of a string
source code
basestring
normalize_whitespaces(value)
Normalize the whitespaces of a string
source code
Function Details

normalize_newlines(value)

source code 

Normalize the newlines of a string

All newlines are converted to n.

Parameters:
  • value (basestring) - The text to normalize
Returns: basestring
The normalized value, the type depends on the input type

normalize_whitespaces(value)

source code 

Normalize the whitespaces of a string

All whitespaces are converted to regular space.

Parameters:
  • value (basestring) - The text to normalize
Returns: basestring
The normalized value, the type depends on the input type