From: davyd Date: Tue, 2 Nov 2004 14:59:26 +0000 (+0000) Subject: 2004-11-02 Davyd Madeley X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c907f1dfe8becd4106a1544366d58b027ac89d2a;p=planet-ucc.git 2004-11-02 Davyd Madeley * ChangeLog: move to new format * extra/feedparser.py: Feedparser 3.3 * other files: moving Planet UCC to oracle --- 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 += '