|
|
|
@ -306,8 +306,8 @@ class VariableClMigrateData(UserHelper, TableVariable):
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.help = _("add a user to the installed system. USER is username. "
|
|
|
|
|
"ADMIN is used for the specifying the need to add "
|
|
|
|
|
"administrator rights to the user (turn off by default). "
|
|
|
|
|
"ADMIN is administrator rights (none, all, update, "
|
|
|
|
|
"none by default). "
|
|
|
|
|
"GROUPS is list user supplimentary groups "
|
|
|
|
|
"(comma delimeter). "
|
|
|
|
|
"Use 'none' value to discard user migration")
|
|
|
|
@ -365,9 +365,9 @@ class VariableClMigrateAdmin(UserHelper, Variable):
|
|
|
|
|
|
|
|
|
|
def choice(self):
|
|
|
|
|
return [
|
|
|
|
|
("none", _("None")),
|
|
|
|
|
("update_system", _("Update system")),
|
|
|
|
|
("all", _("All"))
|
|
|
|
|
("none", ""),
|
|
|
|
|
("all", _("Full access")),
|
|
|
|
|
("update", _("System update")),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
@ -379,6 +379,8 @@ class VariableClMigrateAdmin(UserHelper, Variable):
|
|
|
|
|
for x in self.Get('cl_migrate_user')]
|
|
|
|
|
|
|
|
|
|
def set(self, value):
|
|
|
|
|
name_map = {'update':'system_update'}
|
|
|
|
|
value = map(lambda x:name_map.get(x,x), value)
|
|
|
|
|
return map(lambda x: x if x else self.default_value, value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|