Package occi :: Module wsgi :: Class Application
[hide private]
[frames] | no frames]

Class Application

source code

object --+
         |
        Application

An WSGI application for OCCI.

Instance Methods [hide private]
 
__init__(self, registry=None, renderings=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
register_backend(self, category, backend)
Register a backend.
source code
 
_call_occi(self, environ, response, **kwargs)
Starts the overall OCCI part of the service.
source code
 
__call__(self, environ, response)
Will be called as defined by WSGI.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, registry=None, renderings=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

register_backend(self, category, backend)

source code 

Register a backend.

Verifies that correct 'parent' backends are used.

category -- The category the backend defines. backend -- The backend which handles the given category.

_call_occi(self, environ, response, **kwargs)

source code 

Starts the overall OCCI part of the service. Needs to be called by the __call__ function defined by an WSGI app.

environ -- The WSGI environ. response -- The WESGI response. kwargs -- keyworded arguments which will be forwarded to the backends.

__call__(self, environ, response)
(Call operator)

source code 

Will be called as defined by WSGI.

environ -- The environ. response -- The response.