comparison backend/couchdb/CouchDbBackend.py @ 164:3eeda7cec39b

delete a feed via the GUI works now
author dirk
date Mon, 29 Aug 2011 03:32:39 +0200
parents ab2b26412b77
children 04c3b9796b89
comparison
equal deleted inserted replaced
163:e284a37df1d9 164:3eeda7cec39b
72 def updateFeed(self, feed, changes): 72 def updateFeed(self, feed, changes):
73 for key in changes.keys(): 73 for key in changes.keys():
74 feed[key] = changes[key] 74 feed[key] = changes[key]
75 feed.store(self.database) 75 feed.store(self.database)
76 76
77 def deleteFeed(self, feed): 77 def deleteSelectedFeed(self):
78 raise Exception("not yet implemented") 78 viewResults = self.database.view("feedtest/feedEntries_by_feed", key=self.selectedFeed.id)
79 for row in viewResults:
80 del self.database[row.id]
81 del self.database[self.selectedFeed.id]
79 82
80 def entriesForFeed(self, feed, hideReadEntries): 83 def entriesForFeed(self, feed, hideReadEntries):
81 viewName = "feedtest/feedEntries_by_feed" 84 viewName = "feedtest/feedEntries_by_feed"
82 if hideReadEntries: 85 if hideReadEntries:
83 viewName = "feedtest/unread_feedEntries_by_feed" 86 viewName = "feedtest/unread_feedEntries_by_feed"