master3.1.6
parent 379f6bd9be
commit 86fab1e5b0

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

@ -39,17 +39,21 @@ class VariableClUpdateWorld(Variable):
List of action update world, rebuild world, List of action update world, rebuild world,
""" """
type = "choice" type = "choice"
opt = ["--world"] opt = ["--(action)-world"]
value = "" value = ""
syntax = "--{choice}-world" syntax = "--{choice}-world"
metavalue = 'ACTION' metavalue = 'ACTION'
untrusted = True
def init(self): def init(self):
self.help = "'update' - " +_("update world file") + \ self.help = "'update' - " +_("update world file") + \
",\n'rebuild' - "+ _("rebuild 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): def choice(self):
return [("",_("None")), return [("update",_("Update world")),
("update",_("Update world")),
("rebuild","Rebuild world")] ("rebuild","Rebuild world")]

Loading…
Cancel
Save