File virtman-git-finish-button.diff of Package virt-manager

Subject: Fixed the Finish button on the start pool command.
From: Darryl L. Pierce dpierce@redhat.com Fri Jul 22 11:05:15 2011 -0400
Date: Sat Jul 30 07:53:47 2011 -0400:
Git: 2b5b8a8b35b79977a0e9aacf6a6fb6f48edf475f

The Finish button is now shown on the final page, and the final page
displays confirmation that a pool was stopped.

Subject: Fixed the Finish button on the stop pool command.
From: Darryl L. Pierce dpierce@redhat.com Fri Jul 22 11:20:15 2011 -0400
Date: Sat Jul 30 07:53:47 2011 -0400:
Git: 4ad89abd508d37e27df39de669c9ea83a77c22ac

The Finish button is now displayed on the last page where the stopping
is confirmed to the user.

Index: virt-manager-0.9.0/src/virtManagerTui/startpool.py
===================================================================
--- virt-manager-0.9.0.orig/src/virtManagerTui/startpool.py
+++ virt-manager-0.9.0/src/virtManagerTui/startpool.py
@@ -37,10 +37,6 @@ class StartStoragePoolConfigScreen(Stora
     def page_has_next(self, page):
         return page is LIST_POOLS_PAGE and self.has_selectable_pools()
 
-    def page_has_back(self, page):
-        ignore = page
-        return False
-
     def page_has_finish(self, page):
         return page is FINAL_PAGE
 
@@ -55,10 +51,10 @@ class StartStoragePoolConfigScreen(Stora
     def process_input(self, page):
         if page is LIST_POOLS_PAGE:
             self.get_libvirt().create_storage_pool(self.get_selected_pool())
-            self.set_finished()
 
     def get_final_page(self, screen):
         ignore = screen
+        self.set_finished()
         return [snack.Label("Storage pool started: %s" % self.get_selected_pool())]
 
 def StartStoragePool():
Index: virt-manager-0.9.0/src/virtManagerTui/stoppool.py
===================================================================
--- virt-manager-0.9.0.orig/src/virtManagerTui/stoppool.py
+++ virt-manager-0.9.0/src/virtManagerTui/stoppool.py
@@ -37,10 +37,6 @@ class StopStoragePoolConfigScreen(Storag
     def page_has_next(self, page):
         return page is LIST_POOLS_PAGE and self.has_selectable_pools()
 
-    def page_has_back(self, page):
-        ignore = page
-        return False
-
     def page_has_finish(self, page):
         return page is FINAL_PAGE
 
@@ -55,10 +51,10 @@ class StopStoragePoolConfigScreen(Storag
     def process_input(self, page):
         if page is LIST_POOLS_PAGE:
             self.get_libvirt().destroy_storage_pool(self.get_selected_pool())
-            self.set_finished()
 
     def get_final_page(self, screen):
         ignore = screen
+        self.set_finished()
         return [snack.Label("Storage pool stopped: %s" % self.get_selected_pool())]
 
 def StopStoragePool():
openSUSE Build Service is sponsored by