VirtualMailManager/ext/postconf.py
branchv0.7.x
changeset 717 22f61779d34f
parent 711 2a75058fc064
equal deleted inserted replaced
716:915c14b21db3 717:22f61779d34f
    54                        stderr=PIPE).communicate()[1]
    54                        stderr=PIPE).communicate()[1]
    55         if stderr:
    55         if stderr:
    56             raise VMMError(stderr.strip().decode(), VMM_ERROR)
    56             raise VMMError(stderr.strip().decode(), VMM_ERROR)
    57 
    57 
    58     def read(self, parameter, expand_vars=True):
    58     def read(self, parameter, expand_vars=True):
    59         """Returns the parameters value.
    59         """Returns the parameter's value.
    60 
    60 
    61         If expand_vars is True (default), all variables in the value will be
    61         If expand_vars is True (default), all variables in the value will be
    62         expanded:
    62         expanded:
    63         e.g. mydestination: mail.example.com, localhost.example.com, localhost
    63         e.g. mydestination: mail.example.com, localhost.example.com, localhost
    64         Otherwise the value may contain one or more variables.
    64         Otherwise the value may contain one or more variables.