Mercurial > hg > Feedworm
comparison backend/sqlalchemy/SqlAlchemyBackend.py @ 122:f5afe0c1f4d2 backend
move more operations to the backend
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 21 Aug 2011 18:39:02 +0200 |
parents | 510a5d00e98a |
children | 862760b161b4 |
comparison
equal
deleted
inserted
replaced
121:510a5d00e98a | 122:f5afe0c1f4d2 |
---|---|
34 return self.updater | 34 return self.updater |
35 | 35 |
36 def getFeeds(self): | 36 def getFeeds(self): |
37 return FeedList.getFeeds(self.session) | 37 return FeedList.getFeeds(self.session) |
38 | 38 |
39 def toggleRead(self, feedEntry): | |
40 feedEntry.toggleRead() | |
41 self.session.commit() | |
42 | |
43 def markAllEntriesRead(self, feed): | |
44 feed.markAllEntriesRead() | |
45 self.session.commit() | |
46 | |
39 def dispose(self): | 47 def dispose(self): |
40 # save all uncommitted state, just in case | 48 # save all uncommitted state, just in case |
41 self.session.commit() | 49 self.session.commit() |