diff FeedSettings.py @ 151:bca9341dc67f

move the selected feed into the backend - sqlalchemy backend works, couchdb backend currently broken
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 27 Aug 2011 07:07:50 +0200
parents a4b2077c9603
children a2552f1e450e
line wrap: on
line diff
--- a/FeedSettings.py	Sat Aug 27 06:43:28 2011 +0200
+++ b/FeedSettings.py	Sat Aug 27 07:07:50 2011 +0200
@@ -7,15 +7,15 @@
     Copy all feed properties into the GUI on initialization. Collect all changes
     in a separate dict that's passed into the backend along with the feed to modify.
     """
-    def __init__(self, feed, backend):
+    def __init__(self, backend):
         QtGui.QWidget.__init__(self, None)
-        self.feed = feed
         self.backend = backend
+        self.feed = backend.selectedFeed
         self.changes = {}
         self.ui = Ui_FeedSettings()
         self.ui.setupUi(self)
         self.initUi()
-        
+
     def initUi(self):
         self.ui.feedTitle.setText(self.feed.title)
         self.ui.updateInterval.setText(str(self.feed.update_interval))
@@ -25,7 +25,7 @@
     def editingTitleFinished(self):
         title = str(self.ui.feedTitle.text())
         self.changes["title"] = title
-        
+
     def editingUpdateIntervalFinished(self):
         updateInterval = int(str(self.ui.updateInterval.text()))
         self.changes["update_interval"] = updateInterval