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

lino.core.constants

Defines explicit code names for URL parameters and other frequently used constants.

Module Attributes

URL_PARAM_PARAM_VALUES

Array of values of table parameters.

URL_PARAM_FIELD_VALUES

Array of values of action parameters.

URL_PARAM_MASTER_TYPE

The content type of the master instance.

URL_PARAM_MASTER_PK

The primary key of the master instance.

URL_PARAM_USER_LANGUAGE

override user language

DISPLAY_MODE_GRID

Display the table as a grid widget.

DISPLAY_MODE_DETAIL

Display the table one row at a time.

DISPLAY_MODE_HTML

Display the table using plain HTML.

DISPLAY_MODE_SUMMARY

Display the table as a summary.

DISPLAY_MODE_LIST

Display the table as a list.

DISPLAY_MODE_CARDS

Display the table as cards.

DISPLAY_MODE_GALLERY

Display the table as a photo gallery.

DISPLAY_MODE_STORY

Display the table as a full story.

DISPLAY_MODE_TILES

Display the table as tiles.

DISPLAY_MODES

See More about display modes.

BASIC_DISPLAY_MODES

See More about display modes.

URL_PARAM_SUBST_USER

substitute user

URL_PARAM_LINO_VERSION

Version number of linoweb.js/lino_XXX_XX.json for version clash checking

URL_PARAM_MAIN_JS_TIMESTAMP

Modification timestamp of main.js for version clash checking

URL_PARAM_KNOWN_VALUES

known values

URL_PARAM_TAB

The number of the active tab panel.

ICON_NAMES

A list of all names allowed as icon_name of an action.

USE_LXML

Used in lino.core.soup to decide whether to use the "lxml" parser or the "html.parser" parser.

Functions

dict2kw(d)

parse_boolean(v)

lino.core.constants.URL_PARAM_PARAM_VALUES = 'pv'

Array of values of table parameters.

lino.core.constants.URL_PARAM_FIELD_VALUES = 'fv'

Array of values of action parameters.

lino.core.constants.URL_PARAM_MASTER_TYPE = 'mt'

The content type of the master instance.

lino.core.constants.URL_PARAM_MASTER_PK = 'mk'

The primary key of the master instance.

lino.core.constants.URL_PARAM_USER_LANGUAGE = 'ul'

override user language

lino.core.constants.DISPLAY_MODE_GRID = 'grid'

Display the table as a grid widget. See More about display modes.

lino.core.constants.DISPLAY_MODE_DETAIL = 'detail'

Display the table one row at a time. See More about display modes.

lino.core.constants.DISPLAY_MODE_HTML = 'html'

Display the table using plain HTML. See More about display modes.

lino.core.constants.DISPLAY_MODE_SUMMARY = 'summary'

Display the table as a summary. See More about display modes.

lino.core.constants.DISPLAY_MODE_LIST = 'list'

Display the table as a list. See More about display modes.

lino.core.constants.DISPLAY_MODE_CARDS = 'cards'

Display the table as cards. See More about display modes.

Display the table as a photo gallery. See More about display modes.

lino.core.constants.DISPLAY_MODE_STORY = 'story'

Display the table as a full story. See More about display modes.

lino.core.constants.DISPLAY_MODE_TILES = 'tiles'

Display the table as tiles. See More about display modes.

lino.core.constants.DISPLAY_MODES = {'cards', 'detail', 'gallery', 'grid', 'html', 'list', 'story', 'summary', 'tiles'}

See More about display modes.

lino.core.constants.BASIC_DISPLAY_MODES = {'detail', 'grid'}

See More about display modes.

lino.core.constants.URL_PARAM_SUBST_USER = 'su'

substitute user

lino.core.constants.URL_PARAM_LINO_VERSION = 'lv'

Version number of linoweb.js/lino_XXX_XX.json for version clash checking

lino.core.constants.URL_PARAM_MAIN_JS_TIMESTAMP = 'mjsts'

Modification timestamp of main.js for version clash checking

lino.core.constants.URL_PARAM_KNOWN_VALUES = 'kv'

known values

lino.core.constants.URL_PARAM_TAB = 'tab'

The number of the active tab panel.

lino.core.constants.ICON_NAMES = ('arrow_join', 'arrow_up', 'arrow_down', 'delete', 'add', 'book_link', 'eye', 'basket', 'emoticon_smile', 'pencil', 'cross', 'money', 'application_form', 'application_view_list', 'application_view_detail', 'disk', 'hourglass', 'date_add', 'email_add', 'email_go', 'script', 'script_add', 'bell', 'calendar', 'printer', 'lightning', 'printer_delete', 'arrow_divide', 'page_white_acrobat', 'page_excel', 'html', 'vcard', 'vcard_add', 'wrench', 'transmit', 'accept', 'database_gear', 'cancel', 'flag_green', 'date_next', 'download')

A list of all names allowed as icon_name of an action.

lino.core.constants.USE_LXML = True

Used in lino.core.soup to decide whether to use the “lxml” parser or the “html.parser” parser.