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

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)[source]

This function binds the object to the given parent

Parameters:

parent (Any)

Return type:

None

on_bind(*, parent)[source]

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

Parameters:

parent (Any)

Return type:

None

unbind()[source]

This function unbinds the object

Return type:

None

on_unbind(*, parent)[source]

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

Parameters:

parent (Any)

Return type:

None

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)

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

Parameters:

parent_limit (int number of max 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)[source]

Bind parent to the Bindable

Parameters:

parent (Any)

Return type:

None

on_bind(*, parent)[source]

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

Parameters:

parent (Any)

Return type:

None

unbind(*, parent)[source]

This function unbinds the object

Parameters:

parent (Any)

Return type:

None

on_unbind(*, parent)[source]

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

Parameters:

parent (Any)

Return type:

None

property bound

This Property returns wether the object is bound or not