(self, entry=None, replace=False)
return self.__feed_entries
Get or set feed entries. Use the add_entry() method instead to
        automatically create the FeedEntry objects.

        This method takes both a single FeedEntry object or a list of objects.

        :param entry: FeedEntry object or list of FeedEntry objects.
        :returns: List ob all feed entries.
Get or set feed entries. Use the add_entry() method instead to
        automatically create the FeedEntry objects.
Get or set feed entries . Use the add_entry () method instead to automatically create the FeedEntry objects .
def entry(self, entry=None, replace=False):
        '''Get or set feed entries. Use the add_entry() method instead to
        automatically create the FeedEntry objects.

        This method takes both a single FeedEntry object or a list of objects.

        :param entry: FeedEntry object or list of FeedEntry objects.
        :returns: List ob all feed entries.
        '''
        if entry is not None:
            if not isinstance(entry, list):
                entry = [entry]
            if replace:
                self.__feed_entries = []

            version = sys.version_info[0]

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

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

            self.__feed_entries += entry
        return self.__feed_entries
def entry ( self , entry = None , replace = False ) : if entry is not None : if not isinstance ( entry , list ) : entry = [ entry ] if replace : self . __feed_entries = [ ] version = sys . version_info [ 0 ] if version == 2 : items = self . __extensions . iteritems ( ) else : items = self . __extensions . items ( ) # Try to load extensions: for e in entry : for extname , ext in items : try : e . register_extension ( extname , ext [ 'extension_class_entry' ] , ext [ 'atom' ] , ext [ 'rss' ] ) except ImportError : pass self . __feed_entries += entry return self . __feed_entries