Mercurial > hg > Feedworm
comparison backend/sqlalchemy/SqlAlchemyBackend.py @ 126:089ee60b28fb backend
mark feed entries as read in the backend
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 22 Aug 2011 14:04:42 +0200 |
parents | 514e5d7dca98 |
children | 32a173cb081c |
comparison
equal
deleted
inserted
replaced
125:514e5d7dca98 | 126:089ee60b28fb |
---|---|
54 | 54 |
55 def deleteFeed(self, feed): | 55 def deleteFeed(self, feed): |
56 self.session.delete(feed) | 56 self.session.delete(feed) |
57 self.session.commit() | 57 self.session.commit() |
58 | 58 |
59 def markFeedEntriesAsRead(self, entries): | |
60 for entry in entries: | |
61 entry.markRead() | |
62 self.session.commit() | |
63 | |
59 def dispose(self): | 64 def dispose(self): |
60 # save all uncommitted state, just in case | 65 # save all uncommitted state, just in case |
61 self.session.commit() | 66 self.session.commit() |