b.c.LockableIniFileStore(IniFileStore) : class documentation

Part of bzrlib.config View In Hierarchy

Known subclasses: bzrlib.config.ControlStore, bzrlib.config.GlobalStore, bzrlib.config.LocationStore

A ConfigObjStore using locks on save to ensure store integrity.
Method __init__ A config Store using ConfigObj for storage.
Method lock_write Takes a write lock in the directory containing the config file.
Method unlock Undocumented
Method break_lock Undocumented
Method save Saves the Store to persistent storage.
Method save_without_locking Undocumented

Inherited from IniFileStore:

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 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 (via IniFileStore):

Method __repr__ Undocumented
def __init__(self, transport, file_name, lock_dir_name=None):
A config Store using ConfigObj for storage.
ParameterstransportThe transport object where the config file is located.
file_nameThe config file basename in the transport directory.
def lock_write(self, token=None):
Takes a write lock in the directory containing the config file.

If the directory doesn't exist it is created.

def unlock(self):
Undocumented
def break_lock(self):
Undocumented
@needs_write_lock
def save(self):
Saves the Store to persistent storage.
def save_without_locking(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.