|
|
|
@ -529,36 +529,6 @@ class VariableClLive(Variable):
|
|
|
|
|
self.label = _("Configure only dynamic options")
|
|
|
|
|
self.help = _("configure only dynamic options")
|
|
|
|
|
|
|
|
|
|
class VariableClTemplatesLocate(Variable):
|
|
|
|
|
"""
|
|
|
|
|
Location templates
|
|
|
|
|
"""
|
|
|
|
|
type = "choice-list"
|
|
|
|
|
value = ['overlay','local','remote','clt']
|
|
|
|
|
element = "selecttable"
|
|
|
|
|
opt = ["-l","--locate"]
|
|
|
|
|
metavalue = "TEMPLATES"
|
|
|
|
|
untrusted = True
|
|
|
|
|
|
|
|
|
|
descriptionMap = {'overlay':_('Overlay templates'),
|
|
|
|
|
'local':_('Local templates'),
|
|
|
|
|
'remote':_('Remote templates'),
|
|
|
|
|
'clt':_('clt templates')}
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.label = _("Location templates")
|
|
|
|
|
self.help = _("select location for templates %s") \
|
|
|
|
|
%",".join(self.get())
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
vals = \
|
|
|
|
|
self.Get('cl_template_location')[:len(self.Get('cl_template_path'))]
|
|
|
|
|
return vals + ['clt']
|
|
|
|
|
|
|
|
|
|
def choice(self):
|
|
|
|
|
return map(lambda x:(x,self.descriptionMap.get(x,x)),
|
|
|
|
|
self.get())
|
|
|
|
|
|
|
|
|
|
class VariableOsInstallPxe(ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
|
Installation for PXE loading
|
|
|
|
|