Package Pyblosxom :: Module pyblosxom :: Class EnvDict
[hide private]
[frames] | no frames]

Class EnvDict

source code

object --+    
         |    
      dict --+
             |
            EnvDict

Wrapper arround a dict to provide a backwards compatible way to get the form with syntax as:
   request.getHttp()['form'] 
instead of:
   request.getForm()


Instance Methods [hide private]
 
__init__(self, request, env)
Wraps an environment (which is a dict) and a request.
source code
varies
__getitem__(self, key)
If the key argument is "form", we return the _request.getForm().
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, request, env)
(Constructor)

source code 
Wraps an environment (which is a dict) and a request.
Parameters:
  • request (Request) - the Request object for this request
  • env (dict) - the environment for this request
Returns:
new empty dictionary

Overrides: dict.__init__

__getitem__(self, key)
(Indexing operator)

source code 
If the key argument is "form", we return the _request.getForm(). Otherwise this returns the item for that key in the wrapped dict.
Parameters:
  • key (string) - the key requested
Returns: varies
varies
Overrides: dict.__getitem__