parent
e2a8c43e64
commit
45189d06ed
1 changed files with 6 additions and 5 deletions
|
@ -1004,7 +1004,8 @@ class FeedGenerator(object):
|
||||||
:param feedEntry: FeedEntry object to add.
|
:param feedEntry: FeedEntry object to add.
|
||||||
:param order: If `prepend` is chosen, the entry will be inserted
|
:param order: If `prepend` is chosen, the entry will be inserted
|
||||||
at the beginning of the feed. If `append` is chosen,
|
at the beginning of the feed. If `append` is chosen,
|
||||||
the entry will be appended to the feed. (default: `prepend`).
|
the entry will be appended to the feed.
|
||||||
|
(default: `prepend`).
|
||||||
:returns: FeedEntry object created or passed to this function.
|
:returns: FeedEntry object created or passed to this function.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
@ -1034,10 +1035,10 @@ class FeedGenerator(object):
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if order == 'prepend':
|
if order == 'prepend':
|
||||||
self.__feed_entries.insert(0, feedEntry)
|
self.__feed_entries.insert(0, feedEntry)
|
||||||
else:
|
else:
|
||||||
self.__feed_entries.append(feedEntry)
|
self.__feed_entries.append(feedEntry)
|
||||||
return feedEntry
|
return feedEntry
|
||||||
|
|
||||||
def add_item(self, item=None):
|
def add_item(self, item=None):
|
||||||
|
|
Loading…
Reference in a new issue