Part of bzrlib.config View In Hierarchy
Known subclasses: bzrlib.config.BranchStore, bzrlib.config.LockableIniFileStore
Instance Variables | transport | The transport object where the config file is located. |
file_name | The config file basename in the transport directory. | |
_config_obj | Private member to hold the ConfigObj instance used to serialize/deserialize the config file. |
Method | __init__ | A config Store using ConfigObj for storage. |
Method | is_loaded | Returns True if the Store has been loaded. |
Method | unload | Unloads the Store. |
Method | load | Load the store from the associated file. |
Method | save | Saves the Store to persistent storage. |
Method | external_url | Undocumented |
Method | get_sections | Get the configobj section in the file order. |
Method | get_mutable_section | Returns the specified mutable section. |
Method | _load_from_string | Create a config store from a string. |
Inherited from Store:
Method | __repr__ | Undocumented |
Parameters | transport | The transport object where the config file is located. |
file_name | The config file basename in the transport directory. |
This is used to implement lazy loading and ensure the persistent storage is queried only when needed.
This should make is_loaded() return False. This is used when the caller knows that the persistent storage has changed or may have change since the last load.
Parameters | bytes | A string representing the file content. |
Returns | An iterable of (name, dict). |
Parameters | section_name | The section identifier |