|
|
|
@ -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")]
|
|
|
|
|