(events)
return feed.format(entries=''.join(entries))
Return feed of node events
Return feed of node events
Return feed of node events
def node_feed_xml(events):
    """
    Return feed of node events
    """
    feed = '<feed xmlns="http://www.w3.org/2005/Atom">{entries}</feed>'
    entry = ('<entry><summary>{summary}</summary>'
             '<updated>{updated}</updated></entry>')
    entries = [entry.format(summary=summary, updated=updated)
               for summary, updated in events]
    return feed.format(entries=''.join(entries))
def node_feed_xml ( events ) : feed = '<feed xmlns="http://www.w3.org/2005/Atom">{entries}</feed>' entry = ( '<entry><summary>{summary}</summary>' '<updated>{updated}</updated></entry>' ) entries = [ entry . format ( summary = summary , updated = updated ) for summary , updated in events ] return feed . format ( entries = '' . join ( entries ) )