Warning
This documentation does not refer to the most recent version of Pylons. Current Documentation
The util module is accessible via the pylons module.
The util module provides the main Helper object used by Pylons, in addition to the Buffet object which enables usage of template engines supporting the template plug-in scheme TurboGears utilizes.
The RequestLocal thread-local is utilized by Pylons as the c object that is available via pylons.c and is cleared every request by Pylons.
PylonsTemplate is a Paste Template sub-class that configures the source directory and default plug-ins for a new Pylons project.
This object emulates a dict and supports the full set of dict functions and operations.
Internally, the dict is attached to a threading local object and all access is passed through to the thread-safe object.
This difference means that the object must be initialized per-thread with a _clear() call before the object can be used, and it should be _clear()'ed every request call.
The RequestLocal object also support attribute assignment, which is then internally stored as if they used item assignment. Attribute get is also supported, and is used to 'get' the name requested. Unlike normal attribute access, this will return an empty string if the attribute does not exist.
This class contains 7 members.
Buffet style plug-in template rendering
Buffet implements template language plug-in support modeled highly on the Buffet Project from which this class inherits its name.
This class contains 3 members.
This class contains 7 members.
See the source for more information.