# Class e.p.i.i.IpodResource(ResourceProvider):

Part of elisa.plugins.ipod.ipod_resource View In Hierarchy

This class implements iPod support

Line # | Kind | Name | Docs
--- | --- | --- | ---
44 | Method | __init__ | Undocumented
48 | Method | get | the action parameter of the uri tells what informations are

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.
130 | Method | initialize | Initialize the component.
142 | Method | clean | Clean the component.

def __init__(self):
overrides elisa.core.log.Loggable.__init__
Undocumented
def get(self, uri, model):
overrides elisa.core.components.resource_provider.ResourceProvider.get

the action parameter of the uri tells what informations are requested, but at the moment only tracks can be requested

the search parameter tells which tracks should be requested

possible search values are: albums, songs and artists (which is the default search)

the search can also be narrowed by setting artist and/or album parameter to search only for example for all albums of a given artist.

for each different request, a different model is returned, which is always a list model that contains a list of artist, album or song models

examples (all for tracks at the moment): get songs from artist a: ipod://mnt_point/?action=tracks&search=songs&artist=a

get albums from artist a: ipod://mnt_point/?action=tracks&search=albums&artist=a

get all artists: ipod://mnt_point/?action=tracks&search=artist or (because it is the default search): ipod://mnt_point/?action=tracks

contextual models are not supported!