diff backend/sqlalchemy/SqlAlchemyBackend.py @ 167:a3c945ce434c

adjust the sqlalchemy backend to the changes in AbstractFeedUpdater
author dirk
date Mon, 05 Sep 2011 19:39:08 +0200
parents a05719a6175e
children f4708d38419c
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py	Sat Sep 03 04:12:35 2011 +0200
+++ b/backend/sqlalchemy/SqlAlchemyBackend.py	Mon Sep 05 19:39:08 2011 +0200
@@ -75,14 +75,17 @@
 
     def createFeed(self, url):
         try:
-            FeedUpdater.createNewFeed(url, self.session)
+            newFeed = Feed(url)
+            self.session.add(newFeed)
+
+            FeedUpdater.FeedUpdater(self.preferences(), self.session).update(newFeed)
             self.session.commit()
         except AttributeError as ae:
             self.session.rollback()
             raise ae
 
     def updateAllFeeds(self):
-        FeedUpdater.updateAllFeeds(self.session)
+        FeedUpdater.updateAllFeeds(self.preferences(), self.session)
         self.session.commit()
 
     def updateFeed(self, feed, changes):