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

The lino.api.dd module (database design)

See also lino.api

Global application attributes

lino.api.dd.plugins

Shortcut to lino.core.site.Site.plugins.

lino.api.dd.logger

Shortcut to the main Lino logger.

Utilities

lino.api.dd.schedule_often(every=10)

Schedule the decorated function to be run “often” (default every 10 seconds).

lino.api.dd.schedule_daily()

Schedule the decorated function to be run “daily”.

The signature of the decorated function must be of the type: typing.Callable[[:class:`BaseRequest <lino.core.requests.base.BaseRequest>`], None]

Actors

class lino.api.dd.Table

Shortcut to lino.core.dbtables.Table

class lino.api.dd.Choicelist

Shortcut to lino.core.choicelists.ChoiceList

class lino.api.dd.VirtualTable

Shortcut to lino.core.tables.VirtualTable

class lino.api.dd.VentilatingTable

Shortcut to lino.core.choicelists.ChoiceList

class lino.api.dd.Frame

Shortcut to lino.core.frames.Frame

Application:

Extended Fields:

Virtual Fields:

  • Constant and @constant

  • DisplayField and @displayfield

  • VirtualField and @virtualfield

  • HtmlBox

Layouts:

  • DetailLayout

  • Panel

  • FormLayout no longer supported. Application code should use either InsertLayout or DetailLayout instead.

Utilities:

  • obj2str

  • obj2unicode

  • range_filter, inrange_filter overlap_range_filter

  • full_model_name

  • fields_list

  • chooser

  • class:

    ParameterPanel <lino.core.utils.ParameterPanel>

Inter-app relations:

Signals:

Actions:

lino.api.dd.action()

A decorator that turns a class method into an action.

See Write custom actions.

Permissions:

Workflows:

  • Workflow

  • State