|
|
@ -22,7 +22,7 @@ from soaplib.serializers.clazz import Array, ClassSerializer
|
|
|
|
from soaplib.service import rpc, DefinitionBase
|
|
|
|
from soaplib.service import rpc, DefinitionBase
|
|
|
|
from calculate.api.server.api_types import ReturnedMessage
|
|
|
|
from calculate.api.server.api_types import ReturnedMessage
|
|
|
|
from calculate.api.server.api_types import ChoiceValue, Table, Option, Field, \
|
|
|
|
from calculate.api.server.api_types import ChoiceValue, Table, Option, Field, \
|
|
|
|
GroupField, ViewInfo
|
|
|
|
GroupField, ViewInfo, ViewParams
|
|
|
|
from calculate.lib.datavars import VariableError
|
|
|
|
from calculate.lib.datavars import VariableError
|
|
|
|
|
|
|
|
|
|
|
|
#from cl_install import Install,DataVarsInstall
|
|
|
|
#from cl_install import Install,DataVarsInstall
|
|
|
@ -166,6 +166,7 @@ class Wsdl:
|
|
|
|
expert_label=_("Click for autopartition settings"))
|
|
|
|
expert_label=_("Click for autopartition settings"))
|
|
|
|
dv.addGroup(_("Choice of mount points"),
|
|
|
|
dv.addGroup(_("Choice of mount points"),
|
|
|
|
normal=('os_location_data',),
|
|
|
|
normal=('os_location_data',),
|
|
|
|
|
|
|
|
brief=('os_location_data','os_install_mbr'),
|
|
|
|
expert=('os_install_scratch','cl_uuid_set',
|
|
|
|
expert=('os_install_scratch','cl_uuid_set',
|
|
|
|
'os_install_root_type','os_install_mbr',
|
|
|
|
'os_install_root_type','os_install_mbr',
|
|
|
|
'os_install_kernel_scheduler'))
|
|
|
|
'os_install_kernel_scheduler'))
|
|
|
@ -196,9 +197,9 @@ class Wsdl:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
@rpc(Integer, Integer, Boolean,_returns = ViewInfo)
|
|
|
|
@rpc(Integer, ViewParams, _returns = ViewInfo)
|
|
|
|
@catchExcept
|
|
|
|
@catchExcept
|
|
|
|
def install_view (self, sid, step,expert):
|
|
|
|
def install_view (self, sid, params):
|
|
|
|
dv = self.get_cache(sid,"install","vars")
|
|
|
|
dv = self.get_cache(sid,"install","vars")
|
|
|
|
if not dv:
|
|
|
|
if not dv:
|
|
|
|
dv = self.install_vars()
|
|
|
|
dv = self.install_vars()
|
|
|
@ -208,8 +209,11 @@ class Wsdl:
|
|
|
|
lang = dv.Get('os_install_locale_lang')
|
|
|
|
lang = dv.Get('os_install_locale_lang')
|
|
|
|
self.set_cache(sid,"install","lang",lang,smart=False)
|
|
|
|
self.set_cache(sid,"install","lang",lang,smart=False)
|
|
|
|
dv.processRefresh()
|
|
|
|
dv.processRefresh()
|
|
|
|
view = ViewInfo(dv,step,expert,allsteps=langChanged,
|
|
|
|
view = ViewInfo(dv,step=params.step,
|
|
|
|
brief=_("Starting the installation"))
|
|
|
|
expert=params.expert,
|
|
|
|
|
|
|
|
brief=params.brief,
|
|
|
|
|
|
|
|
allsteps=langChanged,
|
|
|
|
|
|
|
|
brief_label=_("Starting the installation"))
|
|
|
|
self.set_cache(sid, 'install', "vars",dv,smart=False)
|
|
|
|
self.set_cache(sid, 'install', "vars",dv,smart=False)
|
|
|
|
return view
|
|
|
|
return view
|
|
|
|
|
|
|
|
|
|
|
@ -236,14 +240,16 @@ class Wsdl:
|
|
|
|
return self.installCommon(sid,info,'install_flash',
|
|
|
|
return self.installCommon(sid,info,'install_flash',
|
|
|
|
self.install_flash_vars)
|
|
|
|
self.install_flash_vars)
|
|
|
|
|
|
|
|
|
|
|
|
@rpc(Integer, Integer, Boolean,_returns = ViewInfo)
|
|
|
|
@rpc(Integer, ViewParams,_returns = ViewInfo)
|
|
|
|
@catchExcept
|
|
|
|
@catchExcept
|
|
|
|
def install_flash_view (self, sid, step,expert):
|
|
|
|
def install_flash_view (self, sid, params):
|
|
|
|
dv = self.get_cache(sid,"install_flash","vars")
|
|
|
|
dv = self.get_cache(sid,"install_flash","vars")
|
|
|
|
if not dv:
|
|
|
|
if not dv:
|
|
|
|
dv = self.install_flash_vars()
|
|
|
|
dv = self.install_flash_vars()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
dv.processRefresh()
|
|
|
|
dv.processRefresh()
|
|
|
|
view = ViewInfo(dv,step,expert)
|
|
|
|
view = ViewInfo(dv,step=params.step,
|
|
|
|
|
|
|
|
expert=params.expert,
|
|
|
|
|
|
|
|
brief=params.brief)
|
|
|
|
self.set_cache(sid, 'install_flash', "vars",dv,smart=False)
|
|
|
|
self.set_cache(sid, 'install_flash', "vars",dv,smart=False)
|
|
|
|
return view
|
|
|
|
return view
|
|
|
|