From fa3f25dc1c6a73acf4e8e1f3a1c3c819dd6d4efa Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 16 Jun 2019 22:03:25 -0400 Subject: [PATCH] virtManager: rename connect.py -> createconn.py connect.py is too ambiguous, and this naming is more consistent --- ui/{connect.ui => createconn.ui} | 0 virtManager/{connect.py => createconn.py} | 6 +++--- virtManager/engine.py | 4 ++-- virtManager/manager.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename ui/{connect.ui => createconn.ui} (100%) rename virtManager/{connect.py => createconn.py} (98%) diff --git a/ui/connect.ui b/ui/createconn.ui similarity index 100% rename from ui/connect.ui rename to ui/createconn.ui diff --git a/virtManager/connect.py b/virtManager/createconn.py similarity index 98% rename from virtManager/connect.py rename to virtManager/createconn.py index 8c881dd51..773b7de7a 100644 --- a/virtManager/connect.py +++ b/virtManager/createconn.py @@ -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({ diff --git a/virtManager/engine.py b/virtManager/engine.py index 88fbd2089..220a23f9e 100644 --- a/virtManager/engine.py +++ b/virtManager/engine.py @@ -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 diff --git a/virtManager/manager.py b/virtManager/manager.py index ab77a9e0d..88f39bdc5 100644 --- a/virtManager/manager.py +++ b/virtManager/manager.py @@ -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