master3.1.6
parent 379f6bd9be
commit 86fab1e5b0

@ -92,4 +92,3 @@ class Update:
"""
self.initVars(datavars)
return bool(self.applyTemplates())
return True

@ -39,17 +39,21 @@ class VariableClUpdateWorld(Variable):
List of action update world, rebuild world,
"""
type = "choice"
opt = ["--world"]
opt = ["--(action)-world"]
value = ""
syntax = "--{choice}-world"
metavalue = 'ACTION'
untrusted = True
def init(self):
self.help = "'update' - " +_("update world file") + \
",\n'rebuild' - "+ _("rebuild world file")
self.label = _("World")
self.label = _("World action")
def check(self,value):
if not value:
raise VariableError(_("Select action with world"))
def choice(self):
return [("",_("None")),
("update",_("Update world")),
return [("update",_("Update world")),
("rebuild","Rebuild world")]

Loading…
Cancel
Save