diff options
author | Chris Lumens <clumens@redhat.com> | 2009-01-27 14:58:46 -0500 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:29:41 -1000 |
commit | ca1472b789e1555a7b0c5ee817e89c9b98cb9706 (patch) | |
tree | 83c1842694b06191578d56b7a0260aaef4a9143b /gui.py | |
parent | e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4 (diff) | |
download | anaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.tar.gz anaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.tar.xz anaconda-ca1472b789e1555a7b0c5ee817e89c9b98cb9706.zip |
Don't provide a special partedExceptionWindow anymore.
Since pyparted has a lot more execption classes now, it makes sense to just
let anaconda's regular exception handling framework deal with them. This means
a lot of changes throughout are on the way.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -212,39 +212,6 @@ def processEvents(): while gtk.events_pending(): gtk.main_iteration(False) -def partedExceptionWindow(exc): - # if our only option is to cancel, let us handle the exception - # in our code and avoid popping up the exception window here. - if exc.options == parted.EXCEPTION_CANCEL: - return parted.EXCEPTION_UNHANDLED - log.critical("parted exception: %s: %s" %(exc.type_string,exc.message)) - print(exc.type_string) - print(exc.message) - print(exc.options) - win = gtk.Dialog(exc.type_string, mainWindow, gtk.DIALOG_MODAL) - addFrame(win) - win.set_position(gtk.WIN_POS_CENTER) - label = WrappingLabel(exc.message) - win.vbox.pack_start (label) - numButtons = 0 - buttonToAction = {} - - exflags = ((parted.EXCEPTION_FIX, N_("Fix")), - (parted.EXCEPTION_YES, N_("Yes")), - (parted.EXCEPTION_NO, N_("No")), - (parted.EXCEPTION_OK, N_("OK")), - (parted.EXCEPTION_RETRY, N_("Retry")), - (parted.EXCEPTION_IGNORE, N_("Ignore")), - (parted.EXCEPTION_CANCEL, N_("Cancel"))) - for flag, string in exflags: - if exc.options & flag: - win.add_button(_(string), flag) - win.show_all() - rc = win.run() - win.destroy() - - return rc - def widgetExpander(widget, growTo=None): widget.connect("size-allocate", growToParent, growTo) @@ -1304,8 +1271,6 @@ class InstallInterface: anaconda.id.fsset.registerProgressWindow(self.progressWindow) anaconda.id.fsset.registerWaitWindow(self.waitWindow) - parted.exception_set_handler(partedExceptionWindow) - self.icw = InstallControlWindow (self.anaconda) self.icw.run (self.runres) |