libioc.Config.Jail.File package

Module contents

Prototype of config files stored on the filesystem.

class libioc.Config.Jail.File.ConfigFile(file=None, logger=None)[source]

Bases: dict

Abstraction of UCL file based config files in Resources.

property changed

Return true when the file was changed since reading it.

Return type

bool

property file

File path relative to the Resources root_dataset.

Return type

str

property path

Absolute path to the file.

Return type

str

save()[source]

Save the changes to the file.

Return type

bool

class libioc.Config.Jail.File.ResourceConfigFile(resource, file=None, logger=None)[source]

Bases: libioc.Config.Jail.File.ConfigFile

Abstraction of UCL file based config files in Resources.

property path

Absolute path to the file.

Return type

str