equal
deleted
inserted
replaced
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 |