comparison backend/couchdb/FeedEntry.py @ 155:a05719a6175e

move common functionality into an abstract backend class, have both backends inherit from it. Implement enough of the couchdb backend that reading feeds (and marking feed entries as read) is possible
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 27 Aug 2011 08:52:03 +0200
parents b290e29a94b5
children e284a37df1d9
comparison
equal deleted inserted replaced
154:2682db280be0 155:a05719a6175e
20 # return FeedEntry(row) 20 # return FeedEntry(row)
21 # except StopIteration: 21 # except StopIteration:
22 # return None 22 # return None
23 return None 23 return None
24 24
25 def markRead(self, database):
26 self.read = True
27 self.store(database)
28
29 def toggleRead(self, database):
30 if self.read:
31 self.read = False
32 else:
33 self.read = True
34 self.store(database)
35