b.c.TransportConfig(object) : class documentation

Part of bzrlib.config View In Hierarchy

A Config that reads/writes a config file on a Transport.

It is a low-level object that considers config data to be name/value pairs that may be associated with a section. Assigning meaning to these values is done at higher levels like TreeConfig.

Method __init__ Undocumented
Method get_option Return the value associated with a named option.
Method set_option Set the value associated with a named option.
Method remove_option Undocumented
Method _get_config_file Undocumented
Method _external_url Undocumented
Method _get_configobj Undocumented
Method _set_configobj Undocumented
def __init__(self, transport, filename):
Undocumented
def get_option(self, name, section=None, default=None):
Return the value associated with a named option.
ParametersnameThe name of the value
sectionThe section the option is in (if any)
defaultThe value to return if the value is not set
ReturnsThe value or default value
def set_option(self, value, name, section=None):
Set the value associated with a named option.
ParametersvalueThe value to set
nameThe name of the value to set
sectionThe section the option is in (if any)
def remove_option(self, option_name, section_name=None):
Undocumented
def _get_config_file(self):
Undocumented
def _external_url(self):
Undocumented
def _get_configobj(self):
Undocumented
def _set_configobj(self, configobj):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.