Skip to content

2017 API dlibrary.utility.AbstractXmlFile

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.utility.AbstractXmlFile

Class used for setting up files with properties through decorators. This way, plugins can decide how their xml files will behave by just setting the appropriate decorators, as these settings can be plugin version dependant. Loading will correct xmltodict output, so we can expect always the same things: - If an element has nothing (empty), xmltodict gives back None, we prefer an empty dict. - If an element has only inner text, xmltodict gives back a str, we prefer a dict with #text. So the contents will start with a dict and contains only dicts and lists down the road with no lists in lists!

Base classes

  • object The most base type

Constructor

__init__(self, path: str)

Properties

  • (get) path -> str

Methods

load(self, create_if_not_found: bool=False) -> dict

save(self, content: dict)

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally