Part of elisa.plugins.tutorials.amazon.resource_provider View In Hierarchy
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 53 | Method | initialize | Initialize the component. |
| 58 | Method | clean | Clean the component. |
| 65 | Method | get | Return a resource that uri is pointing to. A URI can point
to
|
Inherited from ResourceProvider:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 94 | Method | post | Update the resource pointed by uri with
parameters.
|
| 107 | Method | put | Put one resource into another. Both resources are identified with URIs. |
| 129 | Method | delete | Delete a Resource represented by a URI. |
Inherited from Component (via ResourceProvider):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 85 | Class | PathDescriptor | Undocumented |
| 97 | Class Method | create | Create and initialize the component. |
Inherited from Loggable (via ResourceProvider, Component):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 81 | Method | __init__ | Undocumented |
Initialize the component.
This method is called byComponent.create to finish the
initialization of a component.
| Returns | a deferred called when a component is fully initialized
(type: twisted.internet.defer.Deferred
) | |
Clean the component.
This method is called when a component is not needed anymore to clean its state.| Returns | a deferred called when the component has finished cleaning its state
(type: twisted.internet.defer.Deferred
) | |
Return a resource that uri is pointing to. A URI can point
to any kind of resource. Resources are returned as models.
| Parameters | uri | URI pointing to the resource
(type: elisa.core.media_uri.MediaUri
) |
| context_model | the URI often comes from a certain context. For example a URI pointing
to a MusicAlbum can come from a Model that could contain the album cover or
the album name. If the context_model is provided the resource_provider
should try to reuse its data if possible.
(type: elisa.core.components.model.Model
) | |
| Returns | a new model and a deferred fired when the model is fully loaded
(type: tuple of elisa.core.components.model.Model
elisa.core.utils.defer.Deferred
) | |