|
def | __init__ (self, channel, id_) |
|
def | update (self, entry) |
|
def | get_date (self, key) |
|
def | get_content (self, key) |
|
def | __init__ (self, cache, id_, root=0) |
|
def | cache_key (self, key) |
|
def | cache_read (self) |
|
def | cache_write (self, sync=1) |
|
def | cache_clear (self, sync=1) |
|
def | has_key (self, key) |
|
def | key_type (self, key) |
|
def | set (self, key, value, cached=1) |
|
def | get (self, key) |
|
def | set_as_string (self, key, value, cached=1) |
|
def | get_as_string (self, key) |
|
def | set_as_date (self, key, value, cached=1) |
|
def | get_as_date (self, key) |
|
def | set_as_null (self, key, value, cached=1) |
|
def | get_as_null (self, key) |
|
def | del_key (self, key) |
|
def | keys (self) |
|
def | __iter__ (self) |
|
def | __setattr__ (self, key, value) |
|
def | __getattr__ (self, key) |
|
An item of news.
This class represents a single item of news on a channel. They're
created by members of the Channel class and accessible through it.
Properties:
id Channel-unique identifier for this item.
id_hash Relatively short, printable cryptographic hash of id
date Corrected UTC-Normalised update time, for sorting.
order Order in which items on the same date can be sorted.
hidden Item should be hidden (True if exists).
title One-line title (*).
link Link to the original format text (*).
summary Short first-page summary (*).
content Full HTML content.
modified Date the item claims to have been modified (*).
issued Date the item claims to have been issued (*).
created Date the item claims to have been created (*).
expired Date the item claims to expire (*).
author Name of the author (*).
publisher Name of the publisher (*).
category Category name (*).
comments Link to a page to enter comments (*).
license Link to the licence for the content (*).
source_name Name of the original source of this item (*).
source_link Link to the original source of this item (*).
Properties marked (*) will only be present if the original feed
contained them. Note that the various optional date fields are
simply claims made by the item and parsed from the information
given, 'date' is a far more reliable source of information.
Some feeds may define additional properties to those above.