Updated all configuration screens to use the new base classes.
This commit is contained in:
parent
db6b67f838
commit
9acb85fa57
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
import snack
|
||||
|
||||
import logging
|
||||
from configscreen import HostListConfigScreen
|
||||
from hostlistconfigscreen import HostListConfigScreen
|
||||
|
||||
CONNECTION_LIST_PAGE = 1
|
||||
CONNECTED_PAGE = 2
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import snack
|
||||
|
||||
from configscreen import HostListConfigScreen
|
||||
from hostlistconfigscreen import HostListConfigScreen
|
||||
|
||||
SELECT_HOST_PAGE = 1
|
||||
CONFIRM_REMOVE_PAGE = 2
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import snack
|
||||
|
||||
from configscreen import StorageListConfigScreen
|
||||
from storagelistconfigscreen import StorageListConfigScreen
|
||||
from volumeconfig import StorageVolumeConfig
|
||||
|
||||
SELECT_POOL_PAGE = 1
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue