Mercurial > hg > Feedworm
comparison backend/sqlalchemy/SqlAlchemyBackend.py @ 124:a4b2077c9603 backend
editing a feed's properties is implemented through the backend now
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 22 Aug 2011 11:02:53 +0200 |
parents | 862760b161b4 |
children | 514e5d7dca98 |
comparison
equal
deleted
inserted
replaced
123:862760b161b4 | 124:a4b2077c9603 |
---|---|
45 self.session.commit() | 45 self.session.commit() |
46 except AttributeError as ae: | 46 except AttributeError as ae: |
47 self.session.rollback() | 47 self.session.rollback() |
48 raise ae | 48 raise ae |
49 | 49 |
50 def updateFeed(self, feed, changes): | |
51 feed.takeChangesFrom(changes) | |
52 feed.incrementNextUpdateDate() | |
53 self.session.commit() | |
54 | |
50 def dispose(self): | 55 def dispose(self): |
51 # save all uncommitted state, just in case | 56 # save all uncommitted state, just in case |
52 self.session.commit() | 57 self.session.commit() |