Class e.p.d.p.PhotoAlbumViewMode(GenericListViewMode, ThumbnailMixin):

Part of elisa.plugins.database.photo_controller View In Hierarchy

Undocumented
Line # Kind Name Docs
354 Method get_label Return a text to display in a label to represent an item.
359 Method get_default_image Return the path of a theme resource to display as a default image for
377 Method get_image Return the path to an image file to display as an image for an item.
389 Method get_preview_image Return the path to an image file to display as a preview image for an
365 Method _retrieve_file_path Undocumented
373 Method _got_thumbnail Undocumented

Inherited from GenericListViewMode:

Line # Kind Name Docs
206 Method get_sublabel Return a text to display in a sublabel to represent an item.

Inherited from Component (via GenericListViewMode):

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.

Inherited from Loggable (via GenericListViewMode, Component):

Line # Kind Name Docs
81 Method __init__ Undocumented

Inherited from ThumbnailMixin:

Line # Kind Name Docs
96 Method __init__ Undocumented
111 Method _updated_thumbnail Undocumented
134 Method _request_thumbnail Undocumented
def get_label(self, item):
Return a text to display in a label to represent an item.

This call is asynchronous, it should return a elisa.core.utils.cancellable_defer.CancellableDeferred that, when triggered, returns the text of the label.

Parametersitema list item (type: a subclass of elisa.core.components.model.Model )
Returnsa cancellable deferred (type: elisa.core.utils.cancellable_defer.CancellableDeferred )
def get_default_image(self, item):
Return the path of a theme resource to display as a default image for an item.
Parametersitema list item (type: a subclass of elisa.core.components.model.Model )
Returnsthe path of a theme resource to display as a default image for the item (type: str )
def _retrieve_file_path(self, album):
Undocumented
def _got_thumbnail(self, thumbnail, item):
Undocumented
def get_image(self, item, theme):
Return the path to an image file to display as an image for an item.

This call is asynchronous, it should return a elisa.core.utils.cancellable_defer.CancellableDeferred that, when triggered, returns the path to an image file on disk (downloaded and cached if necessary).

If no other image than the default one is necessary/available, this method should return None.

Parametersitema list item (type: a subclass of elisa.core.components.model.Model )
themethe frontend's current theme (type: elisa.plugins.pigment.widgets.theme.Theme )
Returnsa cancellable deferred or None (type: elisa.core.utils.cancellable_defer.CancellableDeferred )
def get_preview_image(self, item, theme):
Return the path to an image file to display as a preview image for an item.

This call is synchronous, if no preview image is available yet for the item or if no other image than the default one is necessary, it should return None.

Parametersitema list item (type: a subclass of elisa.core.components.model.Model )
themethe frontend's current theme (type: elisa.plugins.pigment.widgets.theme.Theme )
Returnsthe path to an image file on disk or None (type: str or None )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.