Coverage for lino/core/constants.py : 83%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Copyright 2009-2016 Luc Saffre # License: BSD (see file COPYING for details)
""" # import six # str = six.text_type
"""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 """
#~ URL_PARAM_EUSER = 'euser' #~ URL_PARAM_EUSER = 'su'
""" substitute user """
""" known values """
# URL_PARAM_MASTER_GRID = 'mg' """The number of the active tab panel. """
#~ URL_PARAM_EXPAND = 'expand' #~ """ #~ A string entered in the quick search field or in the text field of a combobox. #~ """
#~ TEST = 'name'
'URL_PARAM_ACTION_NAME', 'URL_PARAM_FORMAT', 'URL_PARAM_MASTER_TYPE', 'URL_PARAM_MASTER_PK', 'URL_PARAM_GRIDFILTER', 'URL_PARAM_FILTER', 'URL_PARAM_SORT', 'URL_PARAM_SORTDIR', 'URL_PARAM_START', 'URL_PARAM_LIMIT', 'URL_PARAM_TAB', 'URL_PARAM_REQUESTING_PANEL', 'URL_PARAM_SHOW_PARAMS_PANEL', 'URL_PARAM_SUBST_USER', 'URL_PARAM_USER_LANGUAGE', 'URL_PARAM_ACTION_STEP', 'URL_PARAM_SELECTED', #~ 'TEST', ]
#~ URL_PARAM_CHOICES_PK = "ck"
#~ FMT_RUN = 'act' #~ FMT_JSON = 'json'
#~ User = reports.resolve_model('users.User') #~ from lino.modlib.users.models import User
#~ DEFAULT_GC_NAME = 'std'
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 """.split() """ A list of all names allowed as :attr:`lino.core.actions.Action.icon_name`. """
# pdf --> page_white_acrobat # csv -> page_excel
newd = {} for k, v in list(d.items()): newd[str(k)] = v return newd
if v in ('true', 'on', True): return True if v in ('false', 'off', False): return False raise Exception("Invalid boolean value %r" % v) |