class documentation

class HierarchicDict(object): (source)

View In Hierarchy

This class implements a data store that behaves as a hierarchic dict of dicts. Each key in this object is considered a hierarchic path (the path separator is ':' for obvious reasons). The dict for each key will "inherit" all values from parent paths. However setting a new value will set it specifically for that key, without changing the value in the "parents". This is specifically used to store namespace properties for zim notebooks. So each child namespace will inherit the properties of it's parents unless it was explicitly set for that child namespace.

There is a special member dict stored under the key "__defaults__" which has the top-level fallback properties.

This object only implements __getitem__(), but no __setitem__().

Method __getitem__ Undocumented
Method __init__ Constructor
Class Variable __slots__ Undocumented
Instance Variable dict Undocumented
def __getitem__(self, k): (source)

Undocumented

def __init__(self, defaults=None): (source)
Constructor
Parameters
defaultsdict with the default properties
__slots__: tuple[str, ...] = (source)

Undocumented

Undocumented