VirtualMailManager/ext/Postconf.py
changeset 155 eb866ebb9f2e
parent 138 617f27715b01
child 162 0ac9ef587769
equal deleted inserted replaced
154:6e6488722807 155:eb866ebb9f2e
    36         Keyword arguments:
    36         Keyword arguments:
    37         parameter -- the name of a Postfix configuration parameter (str)
    37         parameter -- the name of a Postfix configuration parameter (str)
    38         expand_vars -- default True (bool)
    38         expand_vars -- default True (bool)
    39         """
    39         """
    40         if not re.match(RE_PC_PARAMS, parameter):
    40         if not re.match(RE_PC_PARAMS, parameter):
    41             raise VMMException(_(u'The value ā€œ%sā€ looks not like a valid\
    41             raise VMMException(_(u'The value ā€œ%sā€ doesn\'t look like a valid\
    42  postfix configuration parameter name.') % parameter, ERR.VMM_ERROR)
    42  postfix configuration parameter name.') % parameter, ERR.VMM_ERROR)
    43         self.__val = self.__read(parameter)
    43         self.__val = self.__read(parameter)
    44         if expand_vars:
    44         if expand_vars:
    45             self.__expandVars()
    45             self.__expandVars()
    46         return self.__val
    46         return self.__val