changeset 163:e284a37df1d9

re-enable finding a FeedEntry by its link
author dirk
date Mon, 29 Aug 2011 03:17:09 +0200
parents ab2b26412b77
children 3eeda7cec39b
files backend/couchdb/FeedEntry.py
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/backend/couchdb/FeedEntry.py	Mon Aug 29 03:11:47 2011 +0200
+++ b/backend/couchdb/FeedEntry.py	Mon Aug 29 03:17:09 2011 +0200
@@ -14,13 +14,11 @@
 
     @staticmethod
     def findByLink(link, database):
-#        result = FeedEntry.view(database, "feedtest/feedEntry_by_link", { "key" : link })
-#        try:
-#            row = iter(result).next()
-#            return FeedEntry(row)
-#        except StopIteration:
-#            return None
-        return None
+        result = FeedEntry.view(database, "feedtest/feedEntry_by_link", key=link)
+        try:
+            return iter(result).next()
+        except StopIteration:
+            return None
 
     def markRead(self, database):
         self.read = True