VirtualMailManager/ext/Postconf.py
branchv0.6.x
changeset 290 e2785e04f92e
parent 223 5c7b7cbb01cd
child 311 a0a10100aee5
equal deleted inserted replaced
289:142f188f7552 290:e2785e04f92e
    37         Keyword arguments:
    37         Keyword arguments:
    38         parameter -- the name of a Postfix configuration parameter (str)
    38         parameter -- the name of a Postfix configuration parameter (str)
    39         expand_vars -- default True (bool)
    39         expand_vars -- default True (bool)
    40         """
    40         """
    41         if not re.match(RE_PC_PARAMS, parameter):
    41         if not re.match(RE_PC_PARAMS, parameter):
    42             raise VMMError(_(u'The value ā€œ%sā€ doesn\'t look like a valid\
    42             raise VMMError(_(u"The value '%s' doesn't look like a valid "
    43  postfix configuration parameter name.') % parameter, ERR.VMM_ERROR)
    43                              u"postfix configuration parameter name.") %
       
    44                            parameter, ERR.VMM_ERROR)
    44         self.__val = self.__read(parameter)
    45         self.__val = self.__read(parameter)
    45         if expand_vars:
    46         if expand_vars:
    46             self.__expandVars()
    47             self.__expandVars()
    47         return self.__val
    48         return self.__val
    48 
    49