Package common :: Module atom :: Class OldEntry
[hide private]
[frames] | no frames]

Class OldEntry

source code


Parser for feeds from pubsub.com. They use old Atom 0.3 format with their extensions.
Instance Methods [hide private]
 
__init__(self, node=None)
Create new Atom 0.3 entry object.
source code
 
__repr__(self)
repr(x)
source code
 
get_feed_title(self)
Returns title of feed, where the entry was created.
source code
 
get_feed_link(self)
Get source link
source code
 
get_title(self)
Get an entry's title.
source code
 
get_uri(self)
Get the uri the entry points to (entry's first link element with rel='alternate' or without rel attribute).
source code
 
get_updated(self)
Get the time the entry was updated last time.
source code

Inherited from xmpp.simplexml.Node: __delitem__, __getattr__, __getitem__, __setitem__, __str__, addChild, addData, clearData, delAttr, delChild, getAttr, getAttrs, getChildren, getData, getName, getNamespace, getParent, getPayload, getTag, getTagAttr, getTagData, getTags, has_attr, iterTags, lookup_nsp, setAttr, setData, setName, setNamespace, setParent, setPayload, setTag, setTagAttr, setTagData

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  feed_tagline = u''

Inherited from xmpp.simplexml.Node: FORCE_NODE_RECREATION

Properties [hide private]
  feed_title
Title of feed.
  feed_link
Link to main webpage of the feed.
  title
Entry's title.
  uri
URI that is pointed by the entry.
  updated
Last significant modification time.

Inherited from object: __class__

Method Details [hide private]

__init__(self, node=None)
(Constructor)

source code 
Create new Atom 0.3 entry object.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

get_feed_title(self)

source code 
Returns title of feed, where the entry was created. The result is the feed name concatenated with source-feed title.

get_feed_link(self)

source code 
Get source link

get_title(self)

source code 
Get an entry's title.

get_uri(self)

source code 
Get the uri the entry points to (entry's first link element with rel='alternate' or without rel attribute).

get_updated(self)

source code 

Get the time the entry was updated last time. This should be standarized, but pubsub.com sends it in human-readable format. We won't try to parse it. (Atom 0.3 uses the word «modified» for that).

If there's no time given in the entry, we try with <published> and <issued> elements.


Class Variable Details [hide private]

feed_tagline

Value:
u''

Property Details [hide private]

feed_title

Title of feed. It is built from entry''s original feed title and title of feed which delivered this entry.
Get Method:
get_feed_title(self) - Returns title of feed, where the entry was created.

feed_link

Link to main webpage of the feed.
Get Method:
get_feed_link(self) - Get source link

title

Entry's title.
Get Method:
get_title(self) - Get an entry's title.

uri

URI that is pointed by the entry.
Get Method:
get_uri(self) - Get the uri the entry points to (entry's first link element with rel='alternate' or without rel attribute).

updated

Last significant modification time.
Get Method:
get_updated(self) - Get the time the entry was updated last time.