Updated all configuration screens to use the new base classes.

This commit is contained in:
Darryl L. Pierce 2011-07-12 15:08:57 -04:00
parent db6b67f838
commit 9acb85fa57
29 changed files with 48 additions and 38 deletions

View File

@ -20,9 +20,11 @@
import snack
import os
from vmmconfigscreen import VmmTuiConfigScreen
from createmeter import CreateMeter
from domainconfig import DomainConfig
from configscreen import ConfigScreen
from virtinst import Guest
VM_DETAILS_PAGE = 1
@ -49,9 +51,9 @@ OS_VARIANT = "os.variant"
MEMORY = "memory"
CPUS = "cpus"
class DomainConfigScreen(ConfigScreen):
class DomainConfigScreen(VmmTuiConfigScreen):
def __init__(self):
ConfigScreen.__init__(self, "Create A New Virtual Machine")
VmmTuiConfigScreen.__init__(self, "Create A New Virtual Machine")
self.__config = DomainConfig()
self.__config.set_architecture(self.get_libvirt().get_default_architecture())
self.__config.set_virt_type(self.get_libvirt().get_default_virt_type())

View File

@ -18,7 +18,7 @@
import snack
from configscreen import ConfigScreen
from vmmconfigscreen import VmmTuiConfigScreen
DETAILS_PAGE = 1
CONFIRM_PAGE = 2
@ -39,9 +39,9 @@ CONNECTIONS = {CONNECTION_LOCAL : "Local",
CONNECTION_SSL : "Remote SSL/TLS with x509 certificate",
CONNECTION_SSH : "Remote tunnel over SSH"}
class AddHostConfigScreen(ConfigScreen):
class AddHostConfigScreen(VmmTuiConfigScreen):
def __init__(self):
ConfigScreen.__init__(self, "Add A Remote Host")
VmmTuiConfigScreen.__init__(self, "Add A Remote Host")
self.__configured = False
self.__connection = None
self.__hostname = None

View File

@ -17,9 +17,9 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
import utils
import newt_syrup.utils
from configscreen import ConfigScreen
from vmmconfigscreen import VmmTuiConfigScreen
from poolconfig import PoolConfig
from virtinst import Storage
@ -27,9 +27,9 @@ POOL_NAME_PAGE = 1
POOL_DETAILS_PAGE = 2
CONFIRM_PAGE = 3
class AddStoragePoolConfigScreen(ConfigScreen):
class AddStoragePoolConfigScreen(VmmTuiConfigScreen):
def __init__(self):
ConfigScreen.__init__(self, "Add A Storage Pool")
VmmTuiConfigScreen.__init__(self, "Add A Storage Pool")
self.__config = PoolConfig(self.get_libvirt())
self.__hostname = None
self.__formats = None

View File

@ -19,9 +19,10 @@
import snack
from createmeter import CreateMeter
from configscreen import StorageListConfigScreen
from storagelistconfigscreen import StorageListConfigScreen
from volumeconfig import StorageVolumeConfig
import utils
import newt_syrup.utils
SELECT_POOL_PAGE = 1
VOLUME_NAME_PAGE = 2

View File

@ -19,7 +19,7 @@
import snack
import logging
from configscreen import HostListConfigScreen
from hostlistconfigscreen import HostListConfigScreen
CONNECTION_LIST_PAGE = 1
CONNECTED_PAGE = 2

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import ConfigScreen
from newt_syrup.configscreen import ConfigScreen
from userworker import UserWorker
import libuser

View File

@ -21,7 +21,7 @@ from IPy import IP
import logging
import re
from configscreen import ConfigScreen
from newt_syrup.configscreen import ConfigScreen
from networkconfig import NetworkConfig
NETWORK_NAME_PAGE = 1

View File

@ -16,7 +16,7 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from configscreen import ConfigScreen
from newt_syrup.configscreen import ConfigScreen
class HostConnectConfigScreen(ConfigScreen):
def __init__(self):

View File

@ -16,7 +16,8 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from menuscreen import MenuScreen
from newt_syrup.menuscreen import MenuScreen
from changehost import ChangeHost
from addhost import AddHost
from removehost import RemoveHost

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
class ListDomainsConfigScreen(DomainListConfigScreen):
LIST_PAGE = 1

View File

@ -17,7 +17,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import NetworkListConfigScreen
from networklistconfigscreen import NetworkListConfigScreen
LIST_PAGE = 1
DETAILS_PAGE = 2

View File

@ -18,8 +18,9 @@
import snack
from configscreen import StorageListConfigScreen
import utils
from storagelistconfigscreen import StorageListConfigScreen
import newt_syrup.utils
LIST_PAGE = 1
DETAILS_PAGE = 2

View File

@ -16,7 +16,8 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from menuscreen import MenuScreen
from newt_syrup.menuscreen import MenuScreen
from nodemenu import NodeMenu
from netmenu import NetworkMenu
from storagemenu import StoragePoolMenu

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
LIST_DOMAINS = 1
SELECT_TARGET = 2

View File

@ -16,7 +16,8 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from menuscreen import MenuScreen
from newt_syrup.menuscreen import MenuScreen
from definenet import DefineNetwork
from startnetwork import StartNetwork
from stopnetwork import StopNetwork

View File

@ -16,7 +16,8 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from menuscreen import MenuScreen
from newt_syrup.menuscreen import MenuScreen
from adddomain import AddDomain
from startdomain import StartDomain
from stopdomain import StopDomain

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
class PauseDomainConfigScreen(DomainListConfigScreen):
LIST_PAGE = 1

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
class RemoveDomainConfigScreen(DomainListConfigScreen):
LIST_PAGE = 1

View File

@ -18,7 +18,7 @@
import snack
from configscreen import HostListConfigScreen
from hostlistconfigscreen import HostListConfigScreen
SELECT_HOST_PAGE = 1
CONFIRM_REMOVE_PAGE = 2

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import StorageListConfigScreen
from storagelistconfigscreen import StorageListConfigScreen
LIST_POOLS_PAGE = 1
CONFIRM_PAGE = 2

View File

@ -18,7 +18,7 @@
import snack
from configscreen import StorageListConfigScreen
from storagelistconfigscreen import StorageListConfigScreen
from volumeconfig import StorageVolumeConfig
SELECT_POOL_PAGE = 1

View File

@ -19,7 +19,8 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
class StartDomainConfigScreen(DomainListConfigScreen):
LIST_PAGE = 1

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import NetworkListConfigScreen
from networklistconfigscreen import NetworkListConfigScreen
LIST_PAGE = 1
START_PAGE = 2

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import StorageListConfigScreen
from storagelistconfigscreen import StorageListConfigScreen
LIST_POOLS_PAGE = 1
FINAL_PAGE = 2

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import DomainListConfigScreen
from domainlistconfigscreen import DomainListConfigScreen
class StopDomainConfigScreen(DomainListConfigScreen):
LIST_PAGE = 1

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import NetworkListConfigScreen
from networklistconfigscreen import NetworkListConfigScreen
LIST_PAGE = 1
STOP_PAGE = 2

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import StorageListConfigScreen
from storagelistconfigscreen import StorageListConfigScreen
LIST_POOLS_PAGE = 1
FINAL_PAGE = 2

View File

@ -16,7 +16,8 @@
# MA 02110-1301, USA. A copy of the GNU General Public License is
# also available at http://www.gnu.org/copyleft/gpl.html.
from menuscreen import MenuScreen
from newt_syrup.menuscreen import MenuScreen
from addpool import AddStoragePool
from startpool import StartStoragePool
from stoppool import StopStoragePool

View File

@ -19,7 +19,7 @@
# also available at http://www.gnu.org/copyleft/gpl.html.
import snack
from configscreen import NetworkListConfigScreen
from networklistconfigscreen import NetworkListConfigScreen
LIST_PAGE = 1
CONFIRM_PAGE = 2