Part of elisa.plugins.rss.models View In Hierarchy
Line # | Kind | Name | Docs |
---|---|---|---|
201 | Method | __init__ | RSS item model, basic fields. |
Inherited from Bindable (via Model):
Line # | Kind | Name | Docs |
---|---|---|---|
34 | Method | bind | Bind a local attribute to
destination_attribute of |
73 | Method | unbind | Remove the binding of attribute to
destination_attribute of |
104 | Method | unbind_object | Remove all the bindings you have for a certain
destination_object . |
118 | Method | __setattr__ | Undocumented |
136 | Method | __delattr__ | Undocumented |
When subclassing RssFeedModel and implementing fill_item_hook(), you should just add slots to the RssItemModel objects, without bothering subclassing this model too.
Two fields are special: 'playable_model' and 'image_model'. Only one should be filled with a PlayableModel or ImageModel, depending on the type of item (audio/video or image).
Parameters | title | (type: str
) |
description | (type: str
) | |
thumbnails | (type: list
) | |
type | (type: str
) | |
playable_model | (type: elisa.plugins.base.model.media.PlayableModel
) | |
image_model | (type: elisa.plugins.base.model.image.ImageModel
) | |
Instance Variables | title | title |
description | description | |
thumbnails | thumbnails | |
type | type of the item (image, video, etc.) or mimetype | |
playable_model | playable model if appropriate for the item | |
image_model | image model if appropriate for the item |