def __init__(self):
self.etag = None
self.date = None
- def __eq__(self, other):
- return self.etag == other.etag and self.date == other.date
+ def __ne__(self, other):
+ return self.etag != other.etag or self.date != other.date
+2004-03-15
+==========
+ * update-planet
+ Cacheability improvements
+ * crontab
+ Write output to logfile.
+ * CacheHandler.py
+ Add != operator to CacheObject
+ * launch-update-planet.sh
+ Cacheability improvements
+
2004-03-06
==========
* Added RSS2Writer.py
-*/5 * * * * $HOME/projects/planetucc/launch-update-planet.sh 1>/dev/null 2>/dev/null
+*/5 * * * * $HOME/projects/planetucc/launch-update-planet.sh 2>&1 > $HOME/projects/planetucc/planet.log
# name url
#
Davyd Madeley http://www.livejournal.com/users/davyd/data/rss
-Ian McKellar http://ian.mckellar.org/wp-rss2.php
+# This feed is broken for caching, also slow
+Ian McKellar http://www.livejournal.com/users/loic/data/rss
+# Ian McKellar http://ian.mckellar.org/wp-rss2.php
# Grahame Bowland http://www.livejournal.com/users/grahame/data/rss
Adam Wright http://www.livejournal.com/users/hipikat/data/rss
Adrian Chadd http://blog.cacheboy.net/blogs/cacheboy/index.rdf
OLDPWD=`pwd`
cd $HOME/projects/planetucc/
./update-planet
+EXITSTATUS=$?
+if [ $EXITSTATUS -eq 0 ]; then
+fi
cd $OLDPWD
blog.feedURL = feed[1]
blogs.append(blog)
# check the old copy of the cache, vs the new copy
- if feed[2].cache == blog.cache:
- pass
- else:
+ if not feed[2] or not feed[2].cache or not blog or not blog.cache or feed[2].cache != blog.cache:
tainted = True
# write the cache back down to disk
cache.storeBlog(blog)