fix display text

master3.3
Спиридонов Денис 12 years ago
parent 6b8e4769a9
commit a2a17f6cf2

@ -1602,7 +1602,7 @@ class VariableClInstallType(Variable):
def check(self,value):
if value == "flash" and \
len(self.Choice('os_install_disk_single')) == 1:
raise VariableError(_("Flash drive not found"))
raise VariableError(_("Flash drive not found")+'.')
class VariableOsInstallDiskSingle(Variable):
"""

@ -460,7 +460,7 @@ class VariableClLive(Variable):
class VariableClTemplatesLocate(Variable):
"""
Disks for boot mbr
Location templates
"""
type = "choice-list"
value = ['overlay','local','remote','clt']
@ -481,12 +481,6 @@ class VariableClTemplatesLocate(Variable):
('remote',_('Remote templates')),
('clt',_('clt templates'))]
# def check(self,value):
# for item in value:
# if not item in ['overlay','local','remote','clt']:
# raise VariableError("locate must be from list 'overlay',"
# "'local','remote','clt'")
class VariableOsInstallPxe(ReadonlyVariable):
"""
Installation for PXE loading
@ -498,7 +492,8 @@ class VariableOsInstallPxe(ReadonlyVariable):
if value == "on":
if self.Get('os_linux_system') != "server":
raise VariableError(
_("PXE installation is available for server only"))
_("PXE installation is available for Calculate Directory "
"Server only")+'.')
for pkg in ['net-misc/dhcp','net-ftp/tftp-hpa','net-fs/nfs-utils']:
if not isPkgInstalled(pkg):
raise VariableError(

Loading…
Cancel
Save