From c907f1dfe8becd4106a1544366d58b027ac89d2a Mon Sep 17 00:00:00 2001 From: davyd Date: Tue, 2 Nov 2004 14:59:26 +0000 Subject: [PATCH] 2004-11-02 Davyd Madeley * ChangeLog: move to new format * extra/feedparser.py: Feedparser 3.3 * other files: moving Planet UCC to oracle --- Changelog | 6 + XHTMLWriter.py | 26 +- extra/feedparser.py | 1419 +++++++++++++++++++++++++++------------ feedlist | 19 +- header.html | 7 +- launch-update-planet.sh | 6 +- sidebar.html | 1 - update-planet | 9 +- 8 files changed, 1029 insertions(+), 464 deletions(-) diff --git a/Changelog b/Changelog index f2ae771..6175c97 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,9 @@ +2004-11-02 Davyd Madeley + + * ChangeLog: move to new format + * extra/feedparser.py: Feedparser 3.3 + * other files: moving Planet UCC to oracle + 2004-05-12 ========== * planet.css diff --git a/XHTMLWriter.py b/XHTMLWriter.py index b9cfcba..99300ba 100644 --- a/XHTMLWriter.py +++ b/XHTMLWriter.py @@ -48,6 +48,19 @@ class XHTMLWriter: except: pass output += '\n' + output += '
\n' + for date in self.planet: + output += '

%s

\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate)) + for item in date.items: + output += self.__write_item__(item) + # see how many items we've written + itemcount += 1 + if itemcount >= self.maxitems: + break + # again, check to see if we've written the maximum number of items + if itemcount >= self.maxitems: + break + output += '
\n' output += '\n' - output += '
\n' - for date in self.planet: - output += '

%s

\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate)) - for item in date.items: - output += self.__write_item__(item) - # see how many items we've written - itemcount += 1 - if itemcount >= self.maxitems: - break - # again, check to see if we've written the maximum number of items - if itemcount >= self.maxitems: - break - output += '
\n' output += '