Browse Source

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

tags/3.5.0_alpha1
parent
commit
7fd4f635e1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      pym/unix/variables/unix.py

+ 6
- 0
pym/unix/variables/unix.py View File

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

Loading…
Cancel
Save