diff 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
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py	Mon Aug 22 10:30:33 2011 +0200
+++ b/backend/sqlalchemy/SqlAlchemyBackend.py	Mon Aug 22 11:02:53 2011 +0200
@@ -47,6 +47,11 @@
             self.session.rollback()
             raise ae
 
+    def updateFeed(self, feed, changes):
+        feed.takeChangesFrom(changes)
+        feed.incrementNextUpdateDate()
+        self.session.commit()
+
     def dispose(self):
         # save all uncommitted state, just in case
         self.session.commit()