changeset 132:63d6d60d37ff

new backend for using CouchDB as persistence mechanism ... currently all methods are unimplemented
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 22 Aug 2011 19:51:59 +0200
parents 1e6274cca035
children 9e1e6b96d8b0
files backend/couchdb/CouchDbBackend.py backend/couchdb/__init__.py
diffstat 1 files changed, 45 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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