Fixed the Finish button on the start pool command.

The Finish button is now shown on the final page, and the final page
displays confirmation that a pool was stopped.
This commit is contained in:
Darryl L. Pierce 2011-07-22 11:05:15 -04:00
parent 5acc47f172
commit 2b5b8a8b35

View File

@ -37,10 +37,6 @@ class StartStoragePoolConfigScreen(StorageListConfigScreen):
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(StorageListConfigScreen):
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 [Label("Storage pool started: %s" % self.get_selected_pool())]
def StartStoragePool():