Logo Search packages:      
Sourcecode: yum-utils version File versions  Download package

def repo-rss::RepoRSS::startRSS (   self )
return string representation of rss preamble

Definition at line 88 of file repo-rss.py.

                      :
        """return string representation of rss preamble"""
    
        rfc822_format = "%a, %d %b %Y %X GMT"
        now = time.strftime(rfc822_format, time.gmtime())
        rssheader = """<?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0">
      <channel>
        <title>%s</title>
        <link>%s</link>
        <description>%s</description>
        <pubDate>%s</pubDate>
        <generator>Yum</generator>
        """ % (self.title, self.link, self.description, now)
        
        self.fo.write(rssheader)
    
    

Generated by  Doxygen 1.6.0   Back to index