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
Array of values of table parameters. |
|
Array of values of action parameters. |
|
The content type of the master instance. |
|
The primary key of the master instance. |
|
override user language |
|
Display the table as a grid widget. |
|
Display the table one row at a time. |
|
Display the table using plain HTML. |
|
Display the table as a summary. |
|
Display the table as a list. |
|
Display the table as cards. |
|
Display the table as a photo gallery. |
|
Display the table as a full story. |
|
Display the table as tiles. |
|
substitute user |
|
Version number of linoweb.js/lino_XXX_XX.json for version clash checking |
|
Modification timestamp of main.js for version clash checking |
|
known values |
|
The number of the active tab panel. |
|
A list of all names allowed as |
|
Used in |
Functions
|
|
|
- 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.
- lino.core.constants.DISPLAY_MODE_GALLERY = 'gallery'¶
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'}¶
- lino.core.constants.BASIC_DISPLAY_MODES = {'detail', 'grid'}¶
- 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_nameof an action.
- lino.core.constants.USE_LXML = True¶
Used in
lino.core.soupto decide whether to use the “lxml” parser or the “html.parser” parser.