(self, feedEntry=None, order='prepend')
return feedEntry
This method will add a new entry to the feed. If the feedEntry
        argument is omittet a new Entry object is created automatically. This
        is the preferred way to add new entries to a feed.

        :param feedEntry: FeedEntry object to add.
        :param order: If `prepend` is chosen, the entry will be inserted
                      at the beginning of the feed. If `append` is chosen,
                      the entry will be appended to the feed.
                      (default: `prepend`).
        :returns: FeedEntry object created or passed to this function.

        Example::

            ...
            >>> entry = feedgen.add_entry()
            >>> entry.title('First feed entry')
This method will add a new entry to the feed. If the feedEntry
        argument is omittet a new Entry object is created automatically. This
        is the preferred way to add new entries to a feed.
This method will add a new entry to the feed . If the feedEntry argument is omittet a new Entry object is created automatically . This is the preferred way to add new entries to a feed .
def add_entry(self, feedEntry=None, order='prepend'):
        '''This method will add a new entry to the feed. If the feedEntry
        argument is omittet a new Entry object is created automatically. This
        is the preferred way to add new entries to a feed.

        :param feedEntry: FeedEntry object to add.
        :param order: If `prepend` is chosen, the entry will be inserted
                      at the beginning of the feed. If `append` is chosen,
                      the entry will be appended to the feed.
                      (default: `prepend`).
        :returns: FeedEntry object created or passed to this function.

        Example::

            ...
            >>> entry = feedgen.add_entry()
            >>> entry.title('First feed entry')

        '''
        if feedEntry is None:
            feedEntry = FeedEntry()

        version = sys.version_info[0]

        if version == 2:
            items = self.__extensions.iteritems()
        else:
            items = self.__extensions.items()

        # Try to load extensions:
        for extname, ext in items:
            try:
                feedEntry.register_extension(extname,
                                             ext['extension_class_entry'],
                                             ext['atom'],
                                             ext['rss'])
            except ImportError:
                pass

        if order == 'prepend':
            self.__feed_entries.insert(0, feedEntry)
        else:
            self.__feed_entries.append(feedEntry)
        return feedEntry
def add_entry ( self , feedEntry = None , order = 'prepend' ) : if feedEntry is None : feedEntry = FeedEntry ( ) version = sys . version_info [ 0 ] if version == 2 : items = self . __extensions . iteritems ( ) else : items = self . __extensions . items ( ) # Try to load extensions: for extname , ext in items : try : feedEntry . register_extension ( extname , ext [ 'extension_class_entry' ] , ext [ 'atom' ] , ext [ 'rss' ] ) except ImportError : pass if order == 'prepend' : self . __feed_entries . insert ( 0 , feedEntry ) else : self . __feed_entries . append ( feedEntry ) return feedEntry