def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.add_item |
( |
|
self, |
|
|
|
title, |
|
|
|
link, |
|
|
|
description, |
|
|
|
author_email = None , |
|
|
|
author_name = None , |
|
|
|
author_link = None , |
|
|
|
pubdate = None , |
|
|
|
comments = None , |
|
|
|
unique_id = None , |
|
|
|
enclosure = None , |
|
|
|
categories = () , |
|
|
|
item_copyright = None , |
|
|
|
ttl = None , |
|
|
|
kwargs |
|
) |
| |
Adds an item to the feed. All args are expected to be Python Unicode
objects except pubdate, which is a datetime.datetime object, and
enclosure, which is an instance of the Enclosure class.
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.add_item_elements |
( |
|
self, |
|
|
|
handler, |
|
|
|
item |
|
) |
| |
Add elements on each item (i.e. item/entry) element.
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.add_root_elements |
( |
|
self, |
|
|
|
handler |
|
) |
| |
Add elements in the root (i.e. feed/channel) element. Called
from write().
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.item_attributes |
( |
|
self, |
|
|
|
item |
|
) |
| |
Return extra attributes to place on each item (i.e. item/entry) element.
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.latest_post_date |
( |
|
self | ) |
|
Returns the latest item's pubdate. If none of them have a pubdate,
this returns the current date/time.
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.root_attributes |
( |
|
self | ) |
|
Return extra attributes to place on the root (i.e. feed/channel) element.
Called from write().
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.write |
( |
|
self, |
|
|
|
outfile, |
|
|
|
encoding |
|
) |
| |
Outputs the feed in the given encoding to outfile, which is a file-like
object. Subclasses should override this.
def google.appengine._internal.django.utils.feedgenerator.SyndicationFeed.writeString |
( |
|
self, |
|
|
|
encoding |
|
) |
| |
Returns the feed in the given encoding as a string.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/_internal/django/utils/feedgenerator.py