VirtualMailManager/ext/Postconf.py
changeset 133 2d5c4745efec
parent 128 cf8116625866
child 138 617f27715b01
equal deleted inserted replaced
132:fa22bd13b4d1 133:2d5c4745efec
    39         Keyword arguments:
    39         Keyword arguments:
    40         parameter -- the name of a Postfix configuration parameter (str)
    40         parameter -- the name of a Postfix configuration parameter (str)
    41         expand_vars -- default True (bool)
    41         expand_vars -- default True (bool)
    42         """
    42         """
    43         if not re.match(RE_PC_PARAMS, parameter):
    43         if not re.match(RE_PC_PARAMS, parameter):
    44             raise VMMException(_(u'The value »%s« looks not like a valid\
    44             raise VMMException(_(u'The value “%s” looks not like a valid\
    45  postfix configuration parameter name.') % parameter, ERR.VMM_ERROR)
    45  postfix configuration parameter name.') % parameter, ERR.VMM_ERROR)
    46         self.__val = self.__read(parameter)
    46         self.__val = self.__read(parameter)
    47         if expand_vars:
    47         if expand_vars:
    48             self.__expandVars()
    48             self.__expandVars()
    49         return self.__val
    49         return self.__val