Mercurial > hg > Feedworm
comparison MainWindow.py @ 125:514e5d7dca98 backend
deleting a feed is now done via the backend
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 22 Aug 2011 11:22:45 +0200 |
parents | a4b2077c9603 |
children | 089ee60b28fb |
comparison
equal
deleted
inserted
replaced
124:a4b2077c9603 | 125:514e5d7dca98 |
---|---|
151 else: | 151 else: |
152 self.updateFeedList() | 152 self.updateFeedList() |
153 | 153 |
154 def deleteFeed(self): | 154 def deleteFeed(self): |
155 try: | 155 try: |
156 self.session.delete(self.selectedFeed) | 156 self.backend.deleteFeed(self.selectedFeed) |
157 self.session.commit() | |
158 self.updateFeedList() | 157 self.updateFeedList() |
159 except Exception as exception: | 158 except Exception as exception: |
160 message = "Error while deleting feed: " + str(exception) | 159 message = "Error while deleting feed: " + str(exception) |
161 self._updateStatusBar(message) | 160 self._updateStatusBar(message) |
162 | 161 |