-
Notifications
You must be signed in to change notification settings - Fork 3
2016 API dlibrary.utility
Used for all other, utility, stuff that can't be placed in one of the other modules.
builtins.BaseException(builtins.object)
........VSException(builtins.BaseException)
builtins.object
........AbstractObservableWithDependencies(builtins.object)
................ObservableCommand(AbstractObservableWithDependencies)
................ObservableMethod(AbstractObservableWithDependencies)
........AbstractPropertyClassDecorator(builtins.object)
........AbstractViewModel(builtins.object)
........AbstractXmlFile(builtins.object)
........Convert(builtins.object)
........Event(builtins.object)
........If(builtins.object)
........Math(builtins.object)
........ObservableField(builtins.object)
................LinkedObservableField(ObservableField)
........ViewModelList(builtins.object)
........XmlDict(builtins.object)
........XmlFileDefaults(builtins.object)
........XmlFileLists(builtins.object)
........XmlFileVersioning(builtins.object)
builtins.type(builtins.object)
........SingletonMeta(builtins.type)
................SingletonABCMeta(SingletonMeta, abc.ABCMeta)
collections.UserList(collections.abc.MutableSequence)
........ObservableList(collections.UserList)
................LinkedObservableList(ObservableList)
Abstract base class for class decorators which adds a property to the class.
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!
Decorator for conditionally apply the given decorator.
> ObservableList > collections.UserList > collections.abc.MutableSequence > collections.abc.Sequence > collections.abc.Sized > collections.abc.Iterable > collections.abc.Container > builtins.object
> collections.UserList > collections.abc.MutableSequence > collections.abc.Sequence > collections.abc.Sized > collections.abc.Iterable > collections.abc.Container > builtins.object
For singletons that are derived from abstract classes.
mro() -> list
return a type's method resolution order
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
mro() -> list
return a type's method resolution order
args
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.
__init__(self, model_list: list, abstract_view_model: , create_new_model: , can_add_new_model: =None, can_add_dependent_property_observables: set={})
Decorator to specify default values for items, so they can be applied if no value is present.
Decorator to correct the contents of an xml file, so that we got actual lists where we expect them. Else, xmltodict will set different types for it depending on how many times it appears in the file.
Decorator to facilitate xml file versioning and to convert to the latest version if needed.
:type converters: dict {int: callable}, which represents version number and converter from previous version.
d:\development\vw libraries\dlibrary\dlibrary\utility.py