comparison backend/sqlalchemy/SqlAlchemyBackend.py @ 125:514e5d7dca98 backend

deleting a feed is now done via the backend
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 22 Aug 2011 11:22:45 +0200
parents a4b2077c9603
children 089ee60b28fb
comparison
equal deleted inserted replaced
124:a4b2077c9603 125:514e5d7dca98
50 def updateFeed(self, feed, changes): 50 def updateFeed(self, feed, changes):
51 feed.takeChangesFrom(changes) 51 feed.takeChangesFrom(changes)
52 feed.incrementNextUpdateDate() 52 feed.incrementNextUpdateDate()
53 self.session.commit() 53 self.session.commit()
54 54
55 def deleteFeed(self, feed):
56 self.session.delete(feed)
57 self.session.commit()
58
55 def dispose(self): 59 def dispose(self):
56 # save all uncommitted state, just in case 60 # save all uncommitted state, just in case
57 self.session.commit() 61 self.session.commit()