* added pubDate and permalink=True to fox.py default tip
authorAndrew Gwozdziewycz <hg@apgwoz.com>
Thu Nov 15 10:01:45 2007 -0800 (4 years ago)
changeset 4281d11a284ef
parent 3 f7c4d826f253
* added pubDate and permalink=True to fox.py
fox.py
     1.1 --- a/fox.py	Mon Nov 05 16:33:03 2007 -0800
     1.2 +++ b/fox.py	Thu Nov 15 10:01:45 2007 -0800
     1.3 @@ -39,14 +39,16 @@
     1.4  <a href="http://www.gocomics.com/foxtrot/%(year)s/%(month)s/%(day)s">Foxtrot at GoComics</a>
     1.5  ]]></description>
     1.6  <link>http://www.gocomics.com/foxtrot/%(year)s/%(month)s/%(day)s</link>
     1.7 -<guid isPermaLink="false">http://www.gocomics.com/foxtrot/%(year)s/%(month)s/%(day)s</guid>
     1.8 +<guid isPermaLink="true">http://www.gocomics.com/foxtrot/%(year)s/%(month)s/%(day)s</guid>
     1.9 +<pubDate>Sun, %(day)s %(monthname)s %(year)s 12:00:00 GMT</pubDate>
    1.10  </item>
    1.11  """         
    1.12  # http://images.ucomics.com/comics/ft/2007/ft071104.gif   
    1.13  rss_items = []
    1.14  for x in previous_sundays(time.time(), 14):
    1.15      data = {'day': x.strftime('%d'),
    1.16 -            'month': x.strftime('%m'), 
    1.17 +            'month': x.strftime('%m'),
    1.18 +            'monthname': x.strftime('%b'), 
    1.19              'year': x.strftime('%Y'),
    1.20              'twoyear': x.strftime('%y'),
    1.21              'date': x.strftime('%m/%d/%Y')}