X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=blobdiff_plain;f=update-planet;h=86fc4a82beba6ce14ddf1cccf37a6163c24dffa5;hp=c0634bbd51616f51d3e7d4e7f1f8673754424768;hb=c4045cc7052293f203832c307037a31d20f959f6;hpb=5978ce5ae181d88a687a1eae36bde3513e2d06dd diff --git a/update-planet b/update-planet index c0634bb..86fc4a8 100755 --- a/update-planet +++ b/update-planet @@ -7,9 +7,12 @@ # (c) 2004, Davyd Madeley # +# standard python modules import sys, codecs +# planetUCC modules import XMLParse2 as XMLParse, XMLWriter, CacheHandler -import XHTMLWriter, RSS2Writer +# planetUCC output plugins +import XHTMLWriter, RSS2Writer, RSS1Writer # step 1: read in the config and check each object from cache cache = CacheHandler.CacheHandler() @@ -46,10 +49,13 @@ try: codecs.open('planet.html', 'wb', 'utf-8').write(xmlwriter.write(XHTMLWriter.XHTMLWriter)) except: sys.stderr.write('DEBUG: update-planet: could not write planet.html, aborting\n') - raise try: codecs.open('rss2.xml', 'wb', 'utf-8').write(xmlwriter.write(RSS2Writer.RSS2Writer)) except: sys.stderr.write('DEBUG: update-planet: could not write rss2.xml, aborting\n') - raise + +try: + codecs.open('rss1.xml', 'wb', 'utf-8').write(xmlwriter.write(RSS1Writer.RSS1Writer)) +except: + sys.stderr.write('DEBUG: update-planet: could not write rss1.xml, aborting\n')