Grss.FeedsStore¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Grss.FeedsStore(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- add_item_in_channel(channel, item)¶
- Parameters:
channel (
Grss.FeedChannel
) – parent feed for the new item.item (
Grss.FeedItem
) – new item to permanently save.
To save a new
Grss.FeedItem
into the self. It performs a check to grant item is not already saved.
- get_channels()¶
- Returns:
list of
Grss.FeedChannel
found in the self. Do not modify or free it.- Return type:
To retrieve list of feeds permanently saved into the store.
- get_items_by_channel(channel)¶
- Parameters:
channel (
Grss.FeedChannel
) – parent feed containing required items.- Returns:
list of
Grss.FeedItem
found in the self. Do not modify or free it.- Return type:
To retrieve list of items saved into the store, assigned to the given channel.
- has_item(channel, id)¶
- Parameters:
channel (
Grss.FeedChannel
) – parent feed containing required item.id (
str
) – unique ID to look for.
- Returns:
- Return type:
To retrieve an item into a feed, given his unique ID.
- switch(run)¶
-
This is to permit the self to auto-update itself: it creates an internal
Grss.FeedsPool
and listens for his signals, so to implement the whole loop fetch-parse-save trasparently.
- do_add_item_in_channel(channel, item) virtual¶
- Parameters:
channel (
Grss.FeedChannel
) – parent feed for the new item.item (
Grss.FeedItem
) – new item to permanently save.
To save a new
Grss.FeedItem
into the store. It performs a check to grant item is not already saved.
- do_get_channels() virtual¶
- Returns:
list of
Grss.FeedChannel
found in the store. Do not modify or free it.- Return type:
To retrieve list of feeds permanently saved into the store.
- do_get_items_by_channel(channel) virtual¶
- Parameters:
channel (
Grss.FeedChannel
) – parent feed containing required items.- Returns:
list of
Grss.FeedItem
found in the store. Do not modify or free it.- Return type:
To retrieve list of items saved into the store, assigned to the given channel.