master3.3
Mike Hiretsky 12 years ago
parent 5f4baafb5c
commit e26944442d

@ -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

Loading…
Cancel
Save