bug fixes
authordavyd <davyd>
Mon, 22 Mar 2004 06:15:06 +0000 (06:15 +0000)
committerdavyd <davyd>
Mon, 22 Mar 2004 06:15:06 +0000 (06:15 +0000)
CacheHandler.py
Changelog
FOAFWriter.py

index 42070a3..64970ef 100644 (file)
@@ -13,7 +13,7 @@ class CacheHandler:
                return "%s_%s.cache" % (title.replace(' ', '_'), feed.replace(' ', '_').replace('http://', '').replace('/', '_'))
        
        def storeBlog(self, blog):
-               name    = self.__create_name__(blog.blogTitle, blog.feedURL)
+               name    = self.__create_name__(blog.blogName, blog.feedURL)
                # write the blog to disk
                try:
                        cPickle.dump(blog, open(os.path.join('cache', name), 'w'))
index 3d91b86..bf8e029 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,10 @@
+2004-03-22
+==========
+ * CacheHandler.py
+   Fixed glitch caused by previous changes.
+ * FOAFWriter.py
+   XML mistake, oops.
+
 2004-03-20
 ==========
  * update-planet, XMLWriter.py, XHTMLWriter.py, RSS1Writer.py, RSS2Writer.py,
index 39ff3fe..76de60e 100644 (file)
@@ -21,7 +21,7 @@ class FOAFWriter:
                output  +=      ' <foaf:Agent>\n'
                output  +=      '  <foaf:name>%s</foaf:name>\n' % blog.blogName
                output  +=      '  <foaf:weblog>\n'
-               output  +=      '   <foaf:Document rdf:about="%s" />\n' % blog.blogURL
+               output  +=      '   <foaf:Document rdf:about="%s">\n' % blog.blogURL
                output  +=      '    <dc:title>%s</dc:title>\n' % blog.blogTitle
                output  +=      '    <rdfs:seeAlso>\n'
                output  +=      '     <rss:channel rdf:about="%s" />\n' % blog.feedURL

UCC git Repository :: git.ucc.asn.au