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