Python Community Server: Noteblog
Comments and opinions from the coder behind the Python Community Server. Techy types might want to check out the development blog for more software-related talk.

Check out CommunityServerWiki for discussion on PyCS and other community servers!
        

Auto-blogrolling

Looks like the coders at UserLand are up something ... so, as usual, here's a bit o' Python code so you can do what they're doing ;-)

I'm told that there's much more to it than this - I'll update this page as details unfold ...

So, on to the details:

If you want an XML (OPML) driven blogroll on your site, download Python and do the following:

  1. Copy renderRoll.py into your gems directory.
  2. Create an outline in Radio and save it as blogroll.opml (also in your gems directory).
  3. At the command line, go into the gems directory and run:
    python renderRoll.py > blogroll.html

Now you should have a nicely rendered blogroll saved as blogroll.html.

Include this in your page by putting the following code in your template:

<% file.readWholeFile( "c:\\program files\\radio userland\\www\gems\\blogroll.html" ) %>

Here's mine:

Enjoy ;-)

Comment on this



© Copyright 2002 Phillip Pearson. Click here to send an email to the editor of this weblog.
Last update: 2002-10-08; 3:47:50 p.m..