Class e.p.t.r.TheMovieDBResourceProvider(ResourceProvider):

Part of elisa.plugins.themoviedb.resource_provider View In Hierarchy

Provide access to resources served by TheMovieDB.org over HTTP.
Line # Kind Name Docs
52 Method initialize Initialize the component.
57 Method clean Close all the open HTTP connections.
70 Method get Link to API docs: http://api.themoviedb.org/2.0/docs
145 Method _fill_movie_model Undocumented
256 Method _response_read Undocumented
288 Method _request_done Undocumented

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
116 Method put Put one resource into another. Both resources are identified with URIs.
138 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
def initialize(self):
Initialize the component.

This method is called by Component.create to finish the initialization of a component.

Returnsa deferred called when a component is fully initialized (type: twisted.internet.defer.Deferred )
def clean(self):
Close all the open HTTP connections.
def get(self, uri, context_model=None):
Link to API docs: http://api.themoviedb.org/2.0/docs

3 API calls currently supported:

- Movie.search: will fill a
  L{elisa.plugins.themoviedb.models.MoviesListModel}
  containing L{elisa.plugins.themoviedb.models.MovieModel}
  instance, partially filled in.

- Movie.getInfo: will complete a
  L{elisa.plugins.themoviedb.models.MovieModel} instance
  passed as context_model (required for this call). The uri to
  request can be retrieved with the api_url property of the
  MovieModel (or read the API docs).

- Movie.imdbLookup: will fill or complete a
  L{elisa.plugins.themoviedb.models.MovieModel} instance
  passed as context_model. The uri to
  request can be retrieved with the imdb_url property of the
  MovieModel (or read the API docs).

Movie posters hosted on themoviedb.org can also be retrieved
and stored to L{elisa.plugins.base.models.media.RawDataModel}
instances. Images are in jpeg format.

@param uri:           URI pointing to the resource
@type uri:            L{elisa.core.media_uri.MediaUri}
@param context_model: optional movie model instance to fill (if uri
                      is a getInfo call)
@type context_model:  L{elisa.plugins.themoviedb.models.MovieModel} or
                      C{None}

@return:              a new model and a deferred fired when the model
                      is filled with the requested resource's data
@rtype:               tuple of L{elisa.core.components.model.Model}
                      L{elisa.core.utils.defer.Deferred}
def _fill_movie_model(self, movie, url, model=None):
Undocumented
def _response_read(self, response, result_model, url):
Undocumented
def _request_done(self, response, model, url):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.