shyft.dashboard.time_series.bindable

Classes

Bindable()

This object presents the Base of any Bindable object which can stay in a view/presenter hierarchical relationship to another object (parent)

BindableToMany(*[, parent_limit])

This object presents the Base of a bindable object which can stay in a hierarchical relationship to several objects (parents)

Exceptions

BindableError

exception shyft.dashboard.time_series.bindable.BindableError[source]

Bases: RuntimeError

class shyft.dashboard.time_series.bindable.Bindable[source]

Bases: object

This object presents the Base of any Bindable object which can stay in a view/presenter hierarchical relationship to another object (parent)

__init__()[source]
bind(*, parent: Any) None[source]

This function binds the object to the given parent

on_bind(*, parent: Any) None[source]

This function is called after parent obj is bound, it can be used by SubClasses for additional tasks on bind

unbind() None[source]

This function unbinds the object

on_unbind(*, parent: Any) None[source]

This function is called before parent obj is unbound, it can be used by SubClasses for additional tasks on unbind

property bound

This Property returns wether the object is bound or not

class shyft.dashboard.time_series.bindable.BindableToMany(*, parent_limit=None)[source]

Bases: object

This object presents the Base of a bindable object which can stay in a hierarchical relationship to several objects (parents)

__init__(*, parent_limit=None)[source]

Bindable base class which is bindable to a certain amount of parents

Parameters:

parent_limit (int number of max parents) –

bind(parent: Any) None[source]

Bind parent to the Bindable

on_bind(*, parent: Any) None[source]

This function is called after parent obj is bound, it can be used by SubClasses for additional tasks on bind

unbind(*, parent: Any) None[source]

This function unbinds the object

on_unbind(*, parent: Any) None[source]

This function is called after parent obj is unbound, it can be used by SubClasses for additional tasks on bind

property bound

This Property returns wether the object is bound or not