summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-06-16 22:00:57 -0400
committerCole Robinson <crobinso@redhat.com>2019-06-17 00:12:32 -0400
commit121cf5528d95cc261199024c970b56e1735db448 (patch)
tree5d08458735e43b02039cdf9800aaec69b5f99f25
parentb15510f3fdb30d1a23bf3e114421a5867ec07c63 (diff)
downloadvirt-manager-121cf5528d95cc261199024c970b56e1735db448.tar.gz
virtManager: rename create.py -> createvm.py
To be more consistent with other create wizard naming
-rw-r--r--ui/createvm.ui (renamed from ui/create.ui)0
-rw-r--r--virtManager/createvm.py (renamed from virtManager/create.py)6
-rw-r--r--virtManager/engine.py4
-rw-r--r--virtManager/manager.py4
4 files changed, 7 insertions, 7 deletions
diff --git a/ui/create.ui b/ui/createvm.ui
index 4df6f6fe..4df6f6fe 100644
--- a/ui/create.ui
+++ b/ui/createvm.ui
diff --git a/virtManager/create.py b/virtManager/createvm.py
index fbb66d66..a9497dd0 100644
--- a/virtManager/create.py
+++ b/virtManager/createvm.py
@@ -103,12 +103,12 @@ def is_virt_bootstrap_installed():
# Main class #
##############
-class vmmCreate(vmmGObjectUI):
+class vmmCreateVM(vmmGObjectUI):
@classmethod
def show_instance(cls, parentobj, uri=None):
try:
if not cls._instance:
- cls._instance = vmmCreate()
+ cls._instance = vmmCreateVM()
cls._instance.show(parentobj and parentobj.topwin or None, uri=uri)
except Exception as e:
if not parentobj:
@@ -117,7 +117,7 @@ class vmmCreate(vmmGObjectUI):
_("Error launching create dialog: %s") % str(e))
def __init__(self):
- vmmGObjectUI.__init__(self, "create.ui", "vmm-create")
+ vmmGObjectUI.__init__(self, "createvm.ui", "vmm-create")
self._cleanup_on_app_close()
self.conn = None
diff --git a/virtManager/engine.py b/virtManager/engine.py
index f87d9755..88fbd208 100644
--- a/virtManager/engine.py
+++ b/virtManager/engine.py
@@ -506,8 +506,8 @@ class vmmEngine(vmmGObject):
manager.set_initial_selection(uri)
manager.show()
elif show_window == self.CLI_SHOW_DOMAIN_CREATOR:
- from .create import vmmCreate
- vmmCreate.show_instance(None, uri)
+ from .createvm import vmmCreateVM
+ vmmCreateVM.show_instance(None, uri)
elif show_window == self.CLI_SHOW_HOST_SUMMARY:
from .host import vmmHost
vmmHost.show_instance(None, self._connobjs[uri])
diff --git a/virtManager/manager.py b/virtManager/manager.py
index db806189..ab77a9e0 100644
--- a/virtManager/manager.py
+++ b/virtManager/manager.py
@@ -453,9 +453,9 @@ class vmmManager(vmmGObjectUI):
vmmConnect.get_instance(self).show(self.topwin)
def new_vm(self, _src):
- from .create import vmmCreate
+ from .createvm import vmmCreateVM
conn = self.current_conn()
- vmmCreate.show_instance(self, conn and conn.get_uri() or None)
+ vmmCreateVM.show_instance(self, conn and conn.get_uri() or None)
def show_about(self, _src):
from .about import vmmAbout