Part of elisa.plugins.yesfm.yesfm_resource View In Hierarchy
Line # | Kind | Name | Docs |
---|---|---|---|
151 | Method | __init__ | Undocumented |
157 | Method | initialize | Initialize the component. |
170 | Method | clean | Clean the component. |
187 | Method | login | Undocumented |
231 | Method | get | Return a resource that uri is pointing to. A URI can point
to
|
255 | Method | post | Post certain data to the YesfmResource provider. Currently only two uris |
314 | Method | get_model_for_uri_path | Create the model corresponding to the given URI path. |
357 | Method | parse_data_into_model | Parse the data into the given model. |
162 | Method | _local_initialize | Undocumented |
290 | Method | _get_raw | Undocumented |
410 | Method | _parse_list_of_data | Undocumented |
416 | Method | _rip_out | Undocumented |
422 | Method | _parse_picture | Undocumented |
432 | Method | _parse_simple | Undocumented |
446 | Method | _send_simple_request | Undocumented |
450 | Method | _send_request | Undocumented |
461 | Method | _parse_response | Undocumented |
470 | Method | _parse_raw | Undocumented |
476 | Method | _login_error | Undocumented |
485 | Method | _set_session_from_login | Undocumented |
496 | Method | _init_login_error | Undocumented |
500 | Method | _login_response | Undocumented |
Inherited from ResourceProvider:
Line # | Kind | Name | Docs |
---|---|---|---|
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. |
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
) |
Post certain data to the YesfmResource provider. Currently only two uris are supported: /v1/auth/login - to try a login. the keyword for that need to be: user and password. returns you a L{elisa.plugins.search.models.LoginModel} / - allows you to set 'sessionkey' and/or 'userkey'. Returns nothing.
Create the model corresponding to the given URI path.
*Attention*: the uri_path is meant to start with /v1/. The next word after that decides about the model. SeePATH_TO_MODEL
to find
out for which one. A sepcial case is the 'search' keyword as it has
sub-classes. For search/artist/.. a ArtistsSearchResultModel
will be created. For search/albums/.. a AlbumsSearchResultModel
will be created.
Parameters | uri_path | the path to the resource on the API-Server
(type: str
) |