Mercurial > hg > Feedworm
comparison backend/couchdb/FeedEntry.py @ 183:ac1de0a467fd
clean up
author | dirk |
---|---|
date | Sun, 11 Sep 2011 06:51:14 +0200 |
parents | 1ab48428e2f9 |
children | e5d492595bdb |
comparison
equal
deleted
inserted
replaced
182:964661153b97 | 183:ac1de0a467fd |
---|---|
30 | 30 |
31 @staticmethod | 31 @staticmethod |
32 def compareByUpdateDate(first, second): | 32 def compareByUpdateDate(first, second): |
33 return cmp(first, second) | 33 return cmp(first, second) |
34 | 34 |
35 @staticmethod | |
36 def entriesForFeed(feed, database): | |
37 viewResults = FeedEntry.view(database, CouchDb.feedEntriesByFeed(), key=feed.id) | |
38 return list(viewResults) | |
39 | |
35 def markRead(self, database): | 40 def markRead(self, database): |
36 self.read = True | 41 self.read = True |
37 self.store(database) | 42 self.store(database) |
38 | 43 |
39 def toggleRead(self, database): | 44 def toggleRead(self, database): |