Part of elisa.plugins.rss.models View In Hierarchy
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 233 | 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.
Three fields are special: 'video_model', 'track_model' and 'image_model'. Only one should be filled with a VideoModel, TrackModel or ImageModel, depending on thetype of item (audio, video or image).
| Parameters | title | (type: str
) |
| description | (type: str
) | |
| thumbnails | (type: list
) | |
| type | (type: str
) | |
| image_model | (type: elisa.plugins.base.model.image.ImageModel
) | |
| video_model | (type: elisa.plugins.rss.models.RssVideoItem
) | |
| track_model | (type: elisa.plugins.rss.models.RssTrackItem
) | |
| Instance Variables | title | title |
| description | description | |
| thumbnails | thumbnails | |
| type | type of the item (image, video, etc.) or mimetype | |
| image_model | image model if appropriate for the item | |
| video_model | video model if appropriate for the item | |
| track_model | track model if appropriate for the item |