77
78
# XXX This doesn't raise errors if it doesn't validate
78
79
self.validate(Validator())
80
def set_by_path(self, path, value, comment=None):
81
def set_by_path(self, path, value=_NO_VALUE, comment=None):
81
82
"""Writes a value to an option, given a '/'-separated path.
82
83
@param path: '/'-separated path to configuration option.
87
88
# Iterate over each segment of the path, and find the section in conf