Accepting request 85212 from Virtualization
An additional bug fix for beta OBS-URL: https://build.opensuse.org/request/show/85212 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virt-manager?expand=0&rev=63
This commit is contained in:
commit
99b748830b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 27 12:01:53 MDT 2011 - carnold@novell.com
|
||||||
|
|
||||||
|
- Fix broken vminstall patch
|
||||||
|
virtman-vminstall.diff
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 21 11:29:17 MDT 2011 - carnold@novell.com
|
Wed Sep 21 11:29:17 MDT 2011 - carnold@novell.com
|
||||||
|
|
||||||
|
@ -22,33 +22,33 @@ Index: virt-manager-0.9.0/src/virtManager/engine.py
|
|||||||
- self._get_create_dialog().show(src.topwin, uri)
|
- self._get_create_dialog().show(src.topwin, uri)
|
||||||
- except Exception, e:
|
- except Exception, e:
|
||||||
- src.err.show_err(_("Error launching manager: %s") % str(e))
|
- src.err.show_err(_("Error launching manager: %s") % str(e))
|
||||||
+ conn = self._lookup_connection(uri)
|
+ conn = self._lookup_conn(uri)
|
||||||
+ do_remote = conn.is_remote()
|
+ do_remote = conn.is_remote()
|
||||||
+ if self.windowCreate == None or do_remote != self.remote_install:
|
+ if self.windowCreate == None or do_remote != self.remote_install:
|
||||||
+ try:
|
+ try:
|
||||||
+ if do_remote:
|
+ if do_remote:
|
||||||
+ from virtManager.create import vmmCreate
|
+ from virtManager.create import vmmCreate
|
||||||
+ create = vmmCreate(self)
|
+ create = vmmCreate(self)
|
||||||
+ create.connect("action-show-console", self._do_show_console)
|
+ create.connect("action-show-vm", self._do_show_vm)
|
||||||
+ create.connect("action-show-help", self._do_show_help)
|
+ create.connect("action-show-help", self._do_show_help)
|
||||||
+ create.connect("vmmcreate-closing", self._vmmcreate_closing)
|
+ create.connect("vmmcreate-closing", self._vmmcreate_closing)
|
||||||
+ self.remote_install = True
|
+ self.remote_install = True
|
||||||
+ self.windowCreate = create
|
+ self.windowCreate = create
|
||||||
+ self.windowCreate.show(uri)
|
+ self.windowCreate.show(src.topwin, uri)
|
||||||
+ else:
|
+ else:
|
||||||
+ from vminstall.gtk.interface import VMCreate as vmmCreate
|
+ from vminstall.gtk.interface import VMCreate as vmmCreate
|
||||||
+ create = vmmCreate(virtman=True,key=0)
|
+ create = vmmCreate(virtman=True,key=0)
|
||||||
+ create.connect("action-show-console", self._do_show_console)
|
+ create.connect("action-show-vm", self._do_show_vm)
|
||||||
+ create.connect("vmmcreate-closing", self._vmmcreate_closing)
|
+ create.connect("vmmcreate-closing", self._vmmcreate_closing)
|
||||||
+ self.remote_install = False
|
+ self.remote_install = False
|
||||||
+ self.windowCreate = create
|
+ self.windowCreate = create
|
||||||
+ self.windowCreate.show()
|
+ self.windowCreate.show(src.topwin)
|
||||||
+ except Exception, e:
|
+ except Exception, e:
|
||||||
+ src.err.show_err(_("Error launching manager: %s") % str(e),
|
+ src.err.show_err(_("Error launching manager: %s") % str(e),
|
||||||
+ "".join(traceback.format_exc()))
|
+ "".join(traceback.format_exc()))
|
||||||
+ else:
|
+ else:
|
||||||
+ if do_remote:
|
+ if do_remote:
|
||||||
+ self.windowCreate.show(uri)
|
+ self.windowCreate.show(src.topwin, uri)
|
||||||
+ else:
|
+ else:
|
||||||
+ message_box = gtk.MessageDialog(None,
|
+ message_box = gtk.MessageDialog(None,
|
||||||
+ gtk.DIALOG_MODAL,
|
+ gtk.DIALOG_MODAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user