VirtualMailManager/ext/postconf.py
branchv0.6.x
changeset 417 8209da83e256
parent 366 d6573da35b5f
child 422 33a45e4c80c4
equal deleted inserted replaced
416:f32b323fd347 417:8209da83e256
    79 
    79 
    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' doesn't 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."""