Add -l option

master3.3
parent bd63e460f6
commit 71fba1033b

@ -80,6 +80,15 @@ class Desktop:
"""Apply templates for user"""
if self.clTempl:
self.closeClTemplate()
templates_locate = self.clVars.Get('cl_templates_locate')
self.clVars.Set("cl_template_path",
map(lambda x:x[1],
filter(lambda x:x[0] in templates_locate,
zip(self.clVars.Get('cl_template_location'),
self.clVars.Get('cl_template_path')))),
True)
self.clTempl = ProgressTemplate(self.setProgress,self.clVars,
cltObj=False,
printERROR=self.printERROR,

@ -40,6 +40,7 @@ class DesktopInfo(ClassSerializer):
"""Parameters for method install"""
ur_login = String
cl_verbose_set = String
cl_templates_locate = Array(String)
Default = Array(String)
CheckOnly = Boolean
@ -69,7 +70,8 @@ class Wsdl:
dv.flIniFile()
dv.Set('cl_action','desktop',True)
dv.addGroup(None,
normal=('ur_login','cl_verbose_set',),
normal=('ur_login',),
expert=('cl_verbose_set','cl_templates_locate'),
next_label=_("Configure"))
return dv

Loading…
Cancel
Save