Добавлена настройка автообновлений при установке

master3.3
Mike Khiretskiy 10 years ago
parent 8e1dbffc23
commit f4b5616788

@ -1684,7 +1684,9 @@ class LayeredDistributive(Distributive):
self.image_file = image_file
def getType(self):
return _("layered '%s %s'")%(self.image_file, self.diff_directory)
return _("layered '{file} {diff}'").format(
file=self.image_file,
diff=self.diff_directory)
def clearDiff(self):
if path.exists(self.diff_directory):

@ -33,6 +33,8 @@ from calculate.lib.encrypt import encrypt
import calculate.lib.cl_template as cl_template
from calculate.lib.cl_lang import setLocalTranslate
from calculate.update.variables import update
setLocalTranslate('cl_install3',sys.modules[__name__])
class UserHelper:
@ -709,3 +711,15 @@ class VariableOsInstallX11ServerSet(PackageCheckHelper):
"""
image = True
package = "x11-base/xorg-server"
class VariableClInstallAutocheckSet(update.VariableClUpdateAutocheckSet):
def get(self):
return self.Get('update.cl_update_autocheck_set')
class VariableClInstallAutocheckInterval(
update.VariableClUpdateAutocheckInterval):
def get(self):
return self.Get('update.cl_update_autocheck_interval')

@ -99,7 +99,10 @@ class Wsdl(WsdlBase):
lambda group:group(_("Video"),
normal=('os_install_x11_video_drv','os_install_x11_composite',
'os_install_x11_resolution','os_install_fb_resolution',
'os_install_grub_terminal'))],
'os_install_grub_terminal')),
lambda group: group(_("Update"),
normal=('cl_install_autocheck_set',
'cl_install_autocheck_interval'))],
# действие выводит информацию перед запуском
'brief':{'next':__("Installation"),
'image':'finish',

Loading…
Cancel
Save