Mercurial > hg > Feedworm
diff backend/couchdb/CouchDbBackend.py @ 166:04c3b9796b89
feedparser uses the proxy now if one is configured. To implement this the FeedUpdater had to change a bit - sqlalchemy backend is not yet refactored.
author | dirk |
---|---|
date | Sat, 03 Sep 2011 04:12:35 +0200 |
parents | 3eeda7cec39b |
children | 91a24f499318 |
line wrap: on
line diff
--- a/backend/couchdb/CouchDbBackend.py Mon Aug 29 04:12:01 2011 +0200 +++ b/backend/couchdb/CouchDbBackend.py Sat Sep 03 04:12:35 2011 +0200 @@ -67,7 +67,9 @@ raise Exception("not yet implemented") def createFeed(self, url): - FeedUpdater.createFeed(url, self.database) + feed = Feed.create(url) + feed.store(self.database) + FeedUpdater(self.database, self.preferences()).update(feed) def updateFeed(self, feed, changes): for key in changes.keys(): @@ -96,7 +98,7 @@ allFeeds = Feed.all(self.database) for feed in allFeeds: if feed.needsUpdate(): - FeedUpdater(feed, self.database).update() + FeedUpdater(self.database, self.preferences()).update(feed) def expireFeedEntries(self): print("Expiring feeds is not yet implemented")