Mercurial > hg > Feedworm
diff MainWindow.py @ 71:228da10cc98b
MainWindow relies on FeedList to get the feeds to display now. FeedList has two inner/private classes: one for returning all known feeds and one to return only feeds with unread entries.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 11 Aug 2010 03:10:32 +0200 |
parents | db35ab7753f0 |
children | 1e6f6ed38dd0 |
line wrap: on
line diff
--- a/MainWindow.py Wed Aug 11 02:30:47 2010 +0200 +++ b/MainWindow.py Wed Aug 11 03:10:32 2010 +0200 @@ -10,6 +10,7 @@ from PyQt4 import QtGui from PyQt4.QtCore import QUrl from Ui_MainWindow import Ui_MainWindow +import FeedList import subprocess STATUS_MESSAGE_DISPLAY_MILLIS = 20000 @@ -24,8 +25,8 @@ self.updateFeedList() self.initFeedEntryList() - def updateFeedList(self): - self.allFeeds = Feed.all(self.session) + def updateFeedList(self): + self.allFeeds = FeedList.getFeeds(self.session) feedModel = DisplayModel(self, self.allFeeds, Feed.userPresentableString) self.ui.feedList.setModel(feedModel) self.ui.feedList.update()