| Trees | Indices | Help |
|
|---|
|
|
Responsible for accessing resources following REST architecture principles.
Accessing a resource is done through a URI that points to it. Possible operations on resources are defined by the REST principles and allow retrieval, creation, update and removal of resources.
For more information about REST, Roy Fielding's thesis is helpful: http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
A resource can be identified with a URI. This is also called a pointer or a link.
Example:
You could have a list of music albums stored at some place designated by the following URI:
elisa://localhost/albums
When the user decides to access the resource behind this URI, a retrieval request is sent to the elisa.resource_manager.ResourceManager. It holds all the ResourceProviders and forwards the request to one that can handle it. This is made possible by trying to match the URI to their regular expressions.
A resource in Elisa is stored as a elisa.core.components.model.Model. The chosen ResourceProvider returns the Model (in this example, it would be something like an AlbumsListModel) and starts to fill it asynchronously. When it is complete, the elisa.core.utils.defer.Deferred is fired.
| Instance Methods | |||
| tuple of elisa.core.components.model.Model elisa.core.utils.defer.Deferred |
|
||
| elisa.core.utils.defer.Deferred |
|
||
| elisa.core.utils.defer.Deferred |
|
||
| elisa.core.utils.defer.Deferred |
|
||
|
Inherited from Inherited from |
|||
| Inherited from component.Component | |||
|---|---|---|---|
twisted.internet.defer.Deferred
|
|
||
twisted.internet.defer.Deferred
|
|
||
|
|||
|
|||
| Inherited from log.Loggable | |||
|
|||
| Class Methods | |||
| Inherited from component.Component | |||
|---|---|---|---|
| elisa.core.component.Component or a subclass |
|
||
| Class Variables | |
| str |
supported_uri regular expression defining what URIs a ResourceProvider can handle |
|
Inherited from |
|
| Inherited from component.Component | |
|---|---|
config_doc = {}
|
|
default_config = {}
|
|
name = property(fget= name__get, fset= name__set)
|
|
path = PathDescriptor()
|
|
| Properties | |
|
Inherited from |
| Method Details |
Return a resource that The model that is returned does not always already contain all the resource. The deferred is fired when the resource loading is complete.
|
Update the resource pointed by
|
Put one resource into another. Both resources are identified with URIs.
|
Delete a Resource represented by a URI.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Dec 1 10:54:30 2009 | http://epydoc.sourceforge.net |