mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
virtManager: rename connect.py -> createconn.py
connect.py is too ambiguous, and this naming is more consistent
This commit is contained in:
parent
121cf5528d
commit
fa3f25dc1c
@ -25,12 +25,12 @@ HV_VZ,
|
||||
HV_CUSTOM) = range(7)
|
||||
|
||||
|
||||
class vmmConnect(vmmGObjectUI):
|
||||
class vmmCreateConn(vmmGObjectUI):
|
||||
@classmethod
|
||||
def get_instance(cls, parentobj):
|
||||
try:
|
||||
if not cls._instance:
|
||||
cls._instance = vmmConnect()
|
||||
cls._instance = vmmCreateConn()
|
||||
return cls._instance
|
||||
except Exception as e:
|
||||
parentobj.err.show_err(
|
||||
@ -41,7 +41,7 @@ class vmmConnect(vmmGObjectUI):
|
||||
return bool(cls._instance)
|
||||
|
||||
def __init__(self):
|
||||
vmmGObjectUI.__init__(self, "connect.ui", "vmm-open-connection")
|
||||
vmmGObjectUI.__init__(self, "createconn.ui", "vmm-open-connection")
|
||||
self._cleanup_on_app_close()
|
||||
|
||||
self.builder.connect_signals({
|
@ -16,7 +16,7 @@ from gi.repository import Gtk
|
||||
from virtinst import log
|
||||
|
||||
from .baseclass import vmmGObject
|
||||
from .connect import vmmConnect
|
||||
from .createconn import vmmCreateConn
|
||||
from .connmanager import vmmConnectionManager
|
||||
from .inspection import vmmInspection
|
||||
from .systray import vmmSystray
|
||||
@ -184,7 +184,7 @@ class vmmEngine(vmmGObject):
|
||||
log.debug("--test-first-run, using uri=None to trigger error")
|
||||
tryuri = None
|
||||
else:
|
||||
tryuri = vmmConnect.default_uri()
|
||||
tryuri = vmmCreateConn.default_uri()
|
||||
log.debug("Probed default URI=%s", tryuri)
|
||||
|
||||
# Manager fail message
|
||||
|
@ -449,8 +449,8 @@ class vmmManager(vmmGObjectUI):
|
||||
vmmEngine.get_instance().exit_app()
|
||||
|
||||
def open_newconn(self, _src):
|
||||
from .connect import vmmConnect
|
||||
vmmConnect.get_instance(self).show(self.topwin)
|
||||
from .createconn import vmmCreateConn
|
||||
vmmCreateConn.get_instance(self).show(self.topwin)
|
||||
|
||||
def new_vm(self, _src):
|
||||
from .createvm import vmmCreateVM
|
||||
|
Loading…
Reference in New Issue
Block a user