view backend/couchdb/CouchDbBackend.py @ 133:9e1e6b96d8b0

implement proxyHost/proxyPort in Preferences
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 23 Aug 2011 03:44:08 +0200
parents 63d6d60d37ff
children 2cd30af937fa
line wrap: on
line source


from Preferences import Preferences
import couchdb

DATABASE = "feedtest"

class CouchDbBackend(object):
    '''
    Backend that uses CouchDB for persistence
    '''

    def __init__(self):
        server = couchdb.Server()
        self.database = server[DATABASE]

    def preferences(self):
        return Preferences(self.database)

    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