Mercurial > hg > Feedworm
diff 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 diff
--- a/backend/couchdb/CouchDbBackend.py Mon Aug 22 19:51:59 2011 +0200 +++ b/backend/couchdb/CouchDbBackend.py Tue Aug 23 03:44:08 2011 +0200 @@ -1,6 +1,9 @@ +from Preferences import Preferences import couchdb +DATABASE = "feedtest" + class CouchDbBackend(object): ''' Backend that uses CouchDB for persistence @@ -8,10 +11,10 @@ def __init__(self): server = couchdb.Server() - self.database = server["feedtest"] + self.database = server[DATABASE] def preferences(self): - raise Exception("not yet implemented") + return Preferences(self.database) def getFeeds(self): raise Exception("not yet implemented")