Latest Version: 0.9.6.2

Warning

This documentation does not refer to the most recent version of Pylons. Current Documentation

RequestLocal

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.


Methods

f __init__(self) ...

f __len__(self) ...

f __getitem__(self, key) ...

f __setitem__(self, key, value) ...

f __delitem__(self, key) ...

f __iter__(self) ...

f __contains__(self, item) ...

See the source for more information.

Top