summaryrefslogtreecommitdiff
path: root/virtManager/baseclass.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2013-08-02 10:18:47 -0400
committerCole Robinson <crobinso@redhat.com>2013-08-21 18:41:42 -0400
commite8531b1f405e075d76dc50f13dee41acee7147e0 (patch)
treebb3f9659603c0a45a1faca1a301d1eae3a39a842 /virtManager/baseclass.py
parent9d11c7eae3ff5a7782ae6eed54501075c3dc7235 (diff)
downloadvirt-manager-e8531b1f405e075d76dc50f13dee41acee7147e0.tar.gz
Initial snapshot support
This adds initial UI for managing snapshots: list, run/revert, delete, add, and redefining (for changing <description>) supported, but currently only for internal snapshots. The UI is mostly in its final form except for some bells and whistles. The real remaining question is what do we want to advertise and support. Internal (qcow2) snapshots are by far the simplest to manage, very mature, and already have the semantics we want. However most recent libvirt and qemu work has been to facilitate external snapshots, which are more extensible and can be performed live, and with qemu-ga coordination for extra safety. However they make things much harder for virt-manager at the moment. Until we have a plan, this work should be considered experimental and not be relied upon.
Diffstat (limited to 'virtManager/baseclass.py')
-rw-r--r--virtManager/baseclass.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/virtManager/baseclass.py b/virtManager/baseclass.py
index 615c85fc..c56c43b8 100644
--- a/virtManager/baseclass.py
+++ b/virtManager/baseclass.py
@@ -189,8 +189,11 @@ class vmmGObjectUI(vmmGObject):
self.builder.set_translation_domain("virt-manager")
self.builder.add_from_string(file(uifile).read())
- self.topwin = self.widget(windowname)
- self.topwin.hide()
+ if not topwin:
+ self.topwin = self.widget(windowname)
+ self.topwin.hide()
+ else:
+ self.topwin = topwin
else:
self.builder = builder
self.topwin = topwin