Mercurial > hg > Feedworm
comparison MainWindow.py @ 121:510a5d00e98a backend
re-enabled AddFeed - does not work yet
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 21 Aug 2011 04:17:13 +0200 |
parents | e830fa1cc7a2 |
children | f5afe0c1f4d2 |
comparison
equal
deleted
inserted
replaced
120:e830fa1cc7a2 | 121:510a5d00e98a |
---|---|
1 | 1 |
2 #from AddFeed import AddFeed | 2 from AddFeed import AddFeed |
3 from DisplayModel import DisplayModel | 3 from DisplayModel import DisplayModel |
4 from FeedEntryItemDelegate import FeedEntryItemDelegate | 4 from FeedEntryItemDelegate import FeedEntryItemDelegate |
5 from FeedEntryTableModel import FeedEntryTableModel | 5 from FeedEntryTableModel import FeedEntryTableModel |
6 from FeedSettings import FeedSettings | 6 from FeedSettings import FeedSettings |
7 from PreferencesDialog import PreferencesDialog | 7 from PreferencesDialog import PreferencesDialog |
140 self.selectedEntry.markRead() | 140 self.selectedEntry.markRead() |
141 self.session.commit() | 141 self.session.commit() |
142 self.ui.feedEntryList.doItemsLayout() | 142 self.ui.feedEntryList.doItemsLayout() |
143 | 143 |
144 def addFeed(self): | 144 def addFeed(self): |
145 pass | 145 addFeed = AddFeed(self.backend) |
146 # addFeed = AddFeed(self.session) | 146 success = addFeed.exec_() |
147 # success = addFeed.exec_() | 147 if not success: |
148 # if not success: | 148 return |
149 # return | 149 |
150 # | 150 if addFeed.exception is not None: |
151 # if addFeed.exception is not None: | 151 message = "Error while adding feed: " + str(addFeed.exception) |
152 # message = "Error while adding feed: " + str(addFeed.exception) | 152 self._updateStatusBar(message) |
153 # self._updateStatusBar(message) | 153 else: |
154 # else: | 154 self.session.commit() |
155 # self.session.commit() | 155 self.updateFeedList() |
156 # self.updateFeedList() | |
157 | 156 |
158 def deleteFeed(self): | 157 def deleteFeed(self): |
159 try: | 158 try: |
160 self.session.delete(self.selectedFeed) | 159 self.session.delete(self.selectedFeed) |
161 self.session.commit() | 160 self.session.commit() |