VirtualMailManager/cli/Handler.py
branchv0.6.x
changeset 281 59ff7c719697
parent 279 74d94b867348
child 316 31d8931dc535
equal deleted inserted replaced
280:db35d2eec518 281:59ff7c719697
    13 from VirtualMailManager.errors import VMMError
    13 from VirtualMailManager.errors import VMMError
    14 from VirtualMailManager.Handler import Handler
    14 from VirtualMailManager.Handler import Handler
    15 from VirtualMailManager.cli import read_pass
    15 from VirtualMailManager.cli import read_pass
    16 from VirtualMailManager.cli.Config import CliConfig as Cfg
    16 from VirtualMailManager.cli.Config import CliConfig as Cfg
    17 from VirtualMailManager.constants.ERROR import INVALID_SECTION
    17 from VirtualMailManager.constants.ERROR import INVALID_SECTION
    18 from VirtualMailManager.ext.Postconf import Postconf
       
    19 
    18 
    20 _ = lambda msg: msg
    19 _ = lambda msg: msg
    21 
    20 
    22 
    21 
    23 class CliHandler(Handler):
    22 class CliHandler(Handler):
    46         self._Cfg = Cfg(self._cfgFileName)
    45         self._Cfg = Cfg(self._cfgFileName)
    47         self._Cfg.load()
    46         self._Cfg.load()
    48         if not skip_some_checks:
    47         if not skip_some_checks:
    49             self._Cfg.check()
    48             self._Cfg.check()
    50             self._chkenv()
    49             self._chkenv()
    51             self._postconf = Postconf(self._Cfg.dget('bin.postconf'))
       
    52 
    50 
    53     def cfgSet(self, option, value):
    51     def cfgSet(self, option, value):
    54         return self._Cfg.set(option, value)
    52         return self._Cfg.set(option, value)
    55 
    53 
    56     def configure(self, section=None):
    54     def configure(self, section=None):