Mercurial > hg > Feedworm
comparison backend/couchdb/CouchDbBackend.py @ 233:e34c53a3e407
fixes from eric's style check
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 25 Sep 2014 17:26:34 +0200 |
parents | 699d8f1cebd4 |
children | c5250fcc3881 |
comparison
equal
deleted
inserted
replaced
232:18865de3a87d | 233:e34c53a3e407 |
---|---|
56 return feedsWithUnreadEntries | 56 return feedsWithUnreadEntries |
57 | 57 |
58 def _retrieveEntriesForSelectedFeed(self, hideReadEntries): | 58 def _retrieveEntriesForSelectedFeed(self, hideReadEntries): |
59 viewResults = FeedEntry.entriesForFeed(self.selectedFeed, self.database) | 59 viewResults = FeedEntry.entriesForFeed(self.selectedFeed, self.database) |
60 if hideReadEntries: | 60 if hideReadEntries: |
61 filterFunc = lambda feedEntry: feedEntry.read == False | 61 filterFunc = lambda feedEntry: feedEntry.read is False |
62 viewResults = filter(filterFunc, viewResults) | 62 viewResults = filter(filterFunc, viewResults) |
63 return viewResults | 63 return viewResults |
64 | 64 |
65 def markSelectedFeedAsRead(self): | 65 def markSelectedFeedAsRead(self): |
66 for feedEntry in self.entriesForSelectedFeed(): | 66 for feedEntry in self.entriesForSelectedFeed(): |
73 def _markSelectedFeedEntryRead(self): | 73 def _markSelectedFeedEntryRead(self): |
74 self.selectedFeedEntry.markRead(self.database) | 74 self.selectedFeedEntry.markRead(self.database) |
75 | 75 |
76 def toggleSelectedFeedEntryRead(self): | 76 def toggleSelectedFeedEntryRead(self): |
77 self.selectedFeedEntry.toggleRead(self.database) | 77 self.selectedFeedEntry.toggleRead(self.database) |
78 | |
79 | 78 |
80 def createFeed(self, url): | 79 def createFeed(self, url): |
81 feed = Feed.create(url) | 80 feed = Feed.create(url) |
82 feed.store(self.database) | 81 feed.store(self.database) |
83 FeedUpdater(self.database, self.preferences()).update(feed) | 82 FeedUpdater(self.database, self.preferences()).update(feed) |