Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.core.tables

Defines the classes AbstractTable and VirtualTable.

Classes

ButtonsTable(*args, **kw)

Probably deprecated.

VentilatedColumns(*args, **kw)

A mixin for tables that have a series of automatically generated columns.

VentilatingTable(*args, **kw)

VirtualTable(*args, **kw)

An AbstractTable that works on an volatile (non persistent) list of rows.

class lino.core.tables.VirtualTable(*args, **kw)

Bases: AbstractTable

An AbstractTable that works on an volatile (non persistent) list of rows.

By nature it cannot have database fields, only virtual fields.

Subclasses must define a get_data_rows() method.

class lino.core.tables.VentilatedColumns(*args, **kw)

Bases: VirtualTable

A mixin for tables that have a series of automatically generated columns. TODO: rename this to DynamicColumns.

column_names_template = ''

The template to use for column_names. It should contain a string {vcolumns}, which will be replaced by a space-separated list of the column names given by get_ventilated_columns().

class lino.core.tables.ButtonsTable(*args, **kw)

Bases: VirtualTable

Probably deprecated. Might not work as expected in React (because of hide_top_toolbar).

An abstract VirtualTable with only one column and whose rows are action buttons.

Subclasses must implement get_data_rows to yield action buttons.

Usage example lino_welfare.modlib.reception.models.FindDateByClientTable.