Настройка переменных

legacy27
父節點 e978ae4196
當前提交 7fd4f635e1

@ -103,6 +103,9 @@ class VariableClUnixPwGenerateSet(Variable):
self.label = _("Generate new service password")
self.help = _("generate new service password")
def uncompatible(self):
if self.Get('server.sr_unix_set') != 'on':
return "Unavailable for unconfigured Unix service"
class VariableClUnixRemoveSet(Variable):
"""
@ -122,3 +125,6 @@ class VariableClUnixRemoveSet(Variable):
if self.Get('server.sr_unix_set') != 'on':
raise VariableError(_("Unix service is not setup"))
def uncompatible(self):
if self.Get('server.sr_unix_set') != 'on':
return "Unavailable for unconfigured Unix service"

載入中…
取消
儲存