Personal aggregator and Atom 1.0 support?

Marius Gedminas mgedmin at b4net.lt
Thu Apr 20 21:58:01 EST 2006


On Wed, Apr 19, 2006 at 02:48:24PM -0400, seth vidal wrote:
> On Wed, 2006-04-19 at 19:36 +0300, Marius Gedminas wrote:
> > On Wed, Apr 19, 2006 at 07:34:37AM -0400, Sam Ruby wrote:
> > > I'm thinking of trying out PlanetPlanet for use as my personal
> > > aggregator.  I do know a little something about Python and syndication
> > > feed formats, so I believe I can help.
> > ...
> > > After that, my interests may take me to adding 'access key' support like
> > > bloglines has, which enable one to jump around via the keyboard; or
> > > towards passing Jacques's "tortue tests" [2] which enable things like
> > > SVG and MathML, but require rigorous conformance to xhtml.
> > 
> > I've been using Planet as my personal aggregator for quite a while:
> > http://mg.b4net.lt/planets/mg
> > 
> 
> Would you be willing to share the templates you used to do this? This is
> fantastic.

Sure.  Get them at http://mg.pov.lt/planet-mg/svn/.  The templates make
use of a new variable 'id_hash', which you can get by applying this
patch:

--- orig/planet/__init__.py
+++ mod/planet/__init__.py
@@ -493,6 +493,7 @@

     Properties:
         id              Channel-unique identifier for this item.
+        id_hash         Relatively short, printable cryptographic hash of id
         date            Corrected UTC-Normalised update time, for sorting.
         order           Order in which items on the same date can be sorted.
         hidden          Item should be hidden (True if exists).
@@ -530,6 +531,7 @@

         self._channel = channel
         self.id = id_
+        self.id_hash = md5.new(id_).hexdigest()
         self.date = None
         self.order = None
         self.content = None


I've also applied a patch to FeedParser to close all open tags in an entry.
The patch used to be available at
http://lists.planetplanet.org/pipermail/devel/2005-January/000365.html
but now that URL gives me a 404 Not Found error.

HTH,
Marius Gedminas
-- 
A "critic" is a man who creates nothing and thereby feels qualified to judge
the work of creative men. There is logic in this; he is unbiased -- he hates
all creative people equally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.waugh.id.au/archives/devel/attachments/20060420/66f48d33/attachment.pgp


More information about the devel mailing list