#!/usr/bin/env python """ homepage - Make the Whits Homepage Author: Sean B. Palmer, inamidst.com """ import sys, os os.chdir(sys.argv[1]) sys.path = ['.'] + sys.path from code.astraea.notes import notes def main(): o = open('feed.atom', 'wb') print >> o, '' print >> o, 'Gallimaufry of Whits' print >> o, 'When found, make a note of!' print >> o, '' print >> o, '' print >> o, 'tag:inamidst.com,2006:whits' for i, note in enumerate(notes()): if i == 0: print >> o, '' + note.updated + '' print >> o, '' print >> o, 'tag:inamidst.com,2006:whits:' + note.updated + '' print >> o, '> o, ' href="http://inamidst.com/whits/' + note.path + '" />' print >> o, '' + note.cite + '' print >> o, '' + note.updated + '' print >> o, 'Sean B. Palmer' print >> o, '> o, ' xml:base="http://inamidst.com/whits/' + note.path + '">' print >> o, '' print >> o, '' print >> o, '' print >> o, '' o.close() if __name__ == '__main__': main()