Package occi :: Module handlers :: Class CollectionHandler
[hide private]
[frames] | no frames]

Class CollectionHandler

source code

 object --+    
          |    
BaseHandler --+
              |
             CollectionHandler

Handles all operations on collections.

Instance Methods [hide private]
 
get(self, key)
Do a HTTP GET on a collection.
source code
 
post(self, key)
Do a HTTP POST on a collection.
source code
 
put(self, key)
Do a HTTP PUT on a collection.
source code
 
delete(self, key)
Do a HTTP DELETE on a collection.
source code

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

    Inherited from BaseHandler
 
__init__(self, registry, headers, body, query, extras=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_renderer(self, content_type)
Returns the proper rendering parser.
source code
 
handle(self, method, key)
Call a HTTP method function on this handler.
source code
 
parse_action(self)
Retrieves the Action which was given in the request.
source code
 
parse_entities(self)
Retrieves a set of entities which was rendered within the request.
source code
 
parse_entity(self, def_kind=None)
Retrieves the entity which was rendered within the request.
source code
 
parse_filter(self)
Retrieve any attributes or categories which where provided in the request for filtering.
source code
 
parse_mixins(self)
Retrieves a mixin from a request.
source code
 
render_categories(self, categories)
Renders a list of categories to the client.
source code
 
render_entities(self, entities, key)
Renders a list of entities to the client.
source code
 
render_entity(self, entity)
Renders a single entity to the client.
source code
 
response(self, status, headers=None, body='OK')
Will try to figure out what rendering the client wants and return back the given status, header and boy.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get(self, key)

source code 

Do a HTTP GET on a collection.

key -- The resource id.

post(self, key)

source code 

Do a HTTP POST on a collection.

key -- The resource id.

put(self, key)

source code 

Do a HTTP PUT on a collection.

key -- The resource id.

delete(self, key)

source code 

Do a HTTP DELETE on a collection.

key -- The resource id.