# HG changeset patch # User Dirk Olmes # Date 1314035519 -7200 # Node ID 63d6d60d37ffe303854a2e66694d4ee28fa6e70b # Parent 1e6274cca0356c2b77be0fe5c43a4988a6859f7d new backend for using CouchDB as persistence mechanism ... currently all methods are unimplemented diff -r 1e6274cca035 -r 63d6d60d37ff backend/couchdb/CouchDbBackend.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/backend/couchdb/CouchDbBackend.py Mon Aug 22 19:51:59 2011 +0200 @@ -0,0 +1,45 @@ + +import couchdb + +class CouchDbBackend(object): + ''' + Backend that uses CouchDB for persistence + ''' + + def __init__(self): + server = couchdb.Server() + self.database = server["feedtest"] + + def preferences(self): + raise Exception("not yet implemented") + + def getFeeds(self): + raise Exception("not yet implemented") + + def toggleRead(self, feedEntry): + raise Exception("not yet implemented") + + def markAllEntriesRead(self, feed): + raise Exception("not yet implemented") + + def createFeed(self, url): + raise Exception("not yet implemented") + + def updateFeed(self, feed, changes): + raise Exception("not yet implemented") + + def deleteFeed(self, feed): + raise Exception("not yet implemented") + + def markFeedEntriesAsRead(self, entries): + raise Exception("not yet implemented") + + def updateAllFeeds(self): + raise Exception("not yet implemented") + + def expireFeedEntries(self): + raise Exception("not yet implemented") + + def dispose(self): + # nothing to do here + pass diff -r 1e6274cca035 -r 63d6d60d37ff backend/couchdb/__init__.py