diff backend/couchdb/Feed.py @ 169:91a24f499318

introdue an abstraction for the name of the database so it can be changed via commandline parameter
author dirk
date Fri, 09 Sep 2011 14:52:54 +0200
parents 04c3b9796b89
children bb3c851b18b1
line wrap: on
line diff
--- a/backend/couchdb/Feed.py	Mon Sep 05 19:43:34 2011 +0200
+++ b/backend/couchdb/Feed.py	Fri Sep 09 14:52:54 2011 +0200
@@ -1,6 +1,7 @@
 
 from couchdb.mapping import BooleanField, DateTimeField, Document, IntegerField, TextField
 from datetime import datetime, timedelta
+import CouchDb
 
 class Feed(Document):
     doctype = TextField(default="feed")
@@ -13,7 +14,7 @@
 
     @staticmethod
     def all(database):
-        return Feed.view(database, "feedtest/feeds")
+        return Feed.view(database, CouchDb.feeds())
 
     @staticmethod
     def create(url, title=None):