class SyndicationFeed:
Known subclasses: django.utils.feedgenerator.Atom1Feed
, django.utils.feedgenerator.RssFeed
Method | __init__ |
Undocumented |
Method | add_item |
Add an item to the feed. All args are expected to be strings except pubdate and updateddate, which are datetime.datetime objects, and enclosures, which is an iterable of instances of the Enclosure class. |
Method | add_item_elements |
Add elements on each item (i.e. item/entry) element. |
Method | add_root_elements |
Add elements in the root (i.e. feed/channel) element. Called from write(). |
Method | item_attributes |
Return extra attributes to place on each item (i.e. item/entry) element. |
Method | latest_post_date |
Return the latest item's pubdate or updateddate. If no items have either of these attributes this return the current UTC date/time. |
Method | num_items |
Undocumented |
Method | root_attributes |
Return extra attributes to place on the root (i.e. feed/channel) element. Called from write(). |
Method | write |
Output the feed in the given encoding to outfile, which is a file-like object. Subclasses should override this. |
Method | writeString |
Return the feed in the given encoding as a string. |
Instance Variable | feed |
Undocumented |
Instance Variable | items |
Undocumented |
Undocumented
django.utils.feedgenerator.Atom1Feed
, django.utils.feedgenerator.Rss201rev2Feed
, django.utils.feedgenerator.RssUserland091Feed
django.utils.feedgenerator.Atom1Feed