Исправлено отображение данных перед установкой на flash

master3.4
Mike Khiretskiy 10 years ago
parent f3b339fb58
commit 30149612f0

@ -502,6 +502,17 @@ class VariableClAutopartitionSet(Variable):
return [("off",_("Use the current partitions")), return [("off",_("Use the current partitions")),
("on",_("Autopartition"))] ("on",_("Autopartition"))]
class VariableClAutopartitionBriefSet(VariableClAutopartitionSet):
def get(self):
return self.Get('cl_autopartition_set')
def uncompatible(self):
if self.Get('os_install_root_type') == 'flash':
return \
_("This option not used for Flash install")
class VariableClAutopartitionScheme(AutopartitionHelper,Variable,AutoPartition): class VariableClAutopartitionScheme(AutopartitionHelper,Variable,AutoPartition):
""" """
Autopartition scheme Autopartition scheme

@ -353,7 +353,7 @@ class VariableClAutologin(UserHelper,Variable):
_("The autologin is not available with domain workstations") _("The autologin is not available with domain workstations")
except DataVarsError: except DataVarsError:
pass pass
return "" return UserHelper.uncompatible(self)
class VariableClInstallAutoupdateSet(Variable): class VariableClInstallAutoupdateSet(Variable):
""" """
@ -662,13 +662,25 @@ class VariableOsInstallUefiSet(Variable):
def uncompatible(self): def uncompatible(self):
""" """
Network setting up unavailable for flash installation Uncompatible with autopartition
""" """
if self.Get('cl_autopartition_set') == "on": if self.Get('cl_autopartition_set') == "on":
return \ return \
_("The layout is not available with autopartitioning") _("The layout is not available with autopartitioning")
if self.Get('os_install_root_type') == 'flash':
return \
_("This option not used for Flash install")
return "" return ""
class VariableOsInstallUefiBriefSet(VariableOsInstallUefiSet):
def uncompatible(self):
if self.Get('os_install_root_type') == 'flash':
return _("This option not used for Flash install")
return ""
def get(self):
return self.Get('os_install_uefi_set')
class VariableOsInstallGrubTerminal(Variable): class VariableOsInstallGrubTerminal(Variable):
""" """
Gfxmode Gfxmode
@ -759,35 +771,35 @@ class FlashUncompatible:
try: try:
import calculate.update.variables.update as update import calculate.update.variables.update as update
class VariableClInstallAutocheckSet(update.VariableClUpdateAutocheckSet, class VariableClInstallAutocheckSet(FlashUncompatible,
FlashUncompatible): update.VariableClUpdateAutocheckSet):
def get(self): def get(self):
return self.Get('update.cl_update_autocheck_set') return self.Get('update.cl_update_autocheck_set')
class VariableClInstallAutocheckInterval( class VariableClInstallAutocheckInterval(FlashUncompatible,
update.VariableClUpdateAutocheckInterval, FlashUncompatible): update.VariableClUpdateAutocheckInterval):
def get(self): def get(self):
return self.Get('update.cl_update_autocheck_interval') return self.Get('update.cl_update_autocheck_interval')
class VariableClInstallCleanpkgSet( class VariableClInstallCleanpkgSet(FlashUncompatible,
update.VariableClUpdateCleanpkgSet, FlashUncompatible): update.VariableClUpdateCleanpkgSet):
def get(self): def get(self):
return self.Get('update.cl_update_cleanpkg_set') return self.Get('update.cl_update_cleanpkg_set')
class VariableClInstallOtherSet( class VariableClInstallOtherSet(FlashUncompatible,
update.VariableClUpdateOtherSet, FlashUncompatible): update.VariableClUpdateOtherSet):
def get(self): def get(self):
return self.Get('update.cl_update_other_set') return self.Get('update.cl_update_other_set')
except ImportError: except ImportError:
class VariableClInstallAutocheckSet(Variable, FlashUncompatible): class VariableClInstallAutocheckSet(FlashUncompatible, Variable):
value = "off" value = "off"
class VariableClInstallAutocheckInterval(Variable, FlashUncompatible): class VariableClInstallAutocheckInterval(FlashUncompatible, Variable):
value = "" value = ""
class VariableClInstallCleanpkgSet(Variable, FlashUncompatible): class VariableClInstallCleanpkgSet(FlashUncompatible, Variable):
value = "off" value = "off"
class VariableClInstallOtherSet(Variable, FlashUncompatible): class VariableClInstallOtherSet(FlashUncompatible, Variable):
value = "off" value = "off"

@ -72,6 +72,8 @@ class Wsdl(WsdlBase):
'cl_image_new_only')), 'cl_image_new_only')),
lambda group:group(_("Allocate drive space"), lambda group:group(_("Allocate drive space"),
normal=('cl_autopartition_set',), normal=('cl_autopartition_set',),
hide=('cl_autopartition_set',),
brief=('cl_autopartition_brief_set',),
expert=('cl_autopartition_scheme', expert=('cl_autopartition_scheme',
'cl_autopartition_table','cl_autopartition_root_size', 'cl_autopartition_table','cl_autopartition_root_size',
'cl_autopartition_swap_size', 'cl_autopartition_swap_size',
@ -80,8 +82,8 @@ class Wsdl(WsdlBase):
lambda group:group(_("Mount points"), lambda group:group(_("Mount points"),
normal=('os_location_data',), normal=('os_location_data',),
hide=('os_location_data','os_install_mbr','os_install_uefi_set'), hide=('os_location_data','os_install_mbr','os_install_uefi_set'),
brief_force=('os_location_brief_data','os_install_bootloader', brief_force=('os_location_brief_data','os_install_bootloader'),
'os_install_uefi_set'), brief=('os_install_uefi_brief_set',),
expert=('cl_uuid_set', expert=('cl_uuid_set',
'os_install_root_type', 'os_install_root_type',
'os_install_mbr', 'os_install_mbr',

Loading…
Cancel
Save