Package expedient :: Package common :: Package middleware :: Module threadlocals :: Class ThreadLocals
[hide private]
[frames] | no frames]

Class ThreadLocals

source code

Middleware that gets various objects from the request object and saves them in thread local storage.

Instance Methods [hide private]
process_request(self, request)
Parse request and set keywords
source code
process_response(self, request, response)
Reset thread locals
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
add_parser(cls, kw, func)
Add a function to parse a request, get an object, and store it in thread locals storage
source code
Class Variables [hide private]
  __parsers = {}
Properties [hide private]

Inherited from object: __class__