Latest Version: 0.9.6.2

util

Utility functions used by various web helpers


Functions

f html_escape(s) ...

HTML-escape a string or object

This converts any non-string objects passed into it to strings (actually, using unicode()). All values returned are non-unicode strings (using &#num; entities for all non-ASCII characters).

None is treated specially, and returns the empty string.

Classes

C Partial(...) ...

partial object, which will be in Python 2.5

This class contains 2 members.

C SimplerXMLGenerator(...) ...

This class contains 2 members.

C UnicodeMultiDict(...) ...

A MultiDict wrapper that decodes returned values to unicode on the fly. Decoding is not applied to assigned values.

The key/value contents are assumed to be str/strs or str/FieldStorages (as is returned by the paste.request.parse_ functions).

Can optionally also decode keys when the decode_keys argument is True.

FieldStorage instances are cloned, and the clone's filename variable is decoded. Its name variable is decoded when decode_keys is enabled.

Docutils System Messages

System Message: ERROR/3 (webhelpers.util.UnicodeMultiDict, line 1); backlink

Unknown target name: "paste.request.parse".

This class contains 25 members.

See the source for more information.

Top