VirtualMailManager/ext/postconf.py
changeset 608 0ed93eb8b364
parent 568 14abdd04ddf5
child 643 df1e3b67882a
child 675 d24f094d1cb5
equal deleted inserted replaced
607:46454ff9d441 608:0ed93eb8b364
    80     def _check_parameter(self, parameter):
    80     def _check_parameter(self, parameter):
    81         """Check that the `parameter` looks like a configuration parameter.
    81         """Check that the `parameter` looks like a configuration parameter.
    82         If not, a VMMError will be raised."""
    82         If not, a VMMError will be raised."""
    83         if not self.__class__._parameter_re.match(parameter):
    83         if not self.__class__._parameter_re.match(parameter):
    84             raise VMMError(_(u"The value '%s' does not look like a valid "
    84             raise VMMError(_(u"The value '%s' does not look like a valid "
    85                              u"postfix configuration parameter name.") %
    85                              u"Postfix configuration parameter name.") %
    86                            parameter, VMM_ERROR)
    86                            parameter, VMM_ERROR)
    87 
    87 
    88     def _expand_vars(self):
    88     def _expand_vars(self):
    89         """Expand the $variables in self._val to their values."""
    89         """Expand the $variables in self._val to their values."""
    90         while True:
    90         while True: