X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=blobdiff_plain;f=update-planet;h=91cd8995e314e45a4dc532b48aec4b78e5855f7c;hp=c0634bbd51616f51d3e7d4e7f1f8673754424768;hb=7c1189be656d2ab9f484d9d0f1ab1b8f287de4c8;hpb=5978ce5ae181d88a687a1eae36bde3513e2d06dd diff --git a/update-planet b/update-planet index c0634bb..91cd899 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,14 @@ 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') + +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') raise