Attention

You’re viewing an old version of the L’ART Research Assistant documentation. The project has moved to https://lart.readthedocs.io/projects/research-assistant.

research_client.booteel

Utilities to work with Python Eel and Bootstrap.

Functions

buildquery(params)

Build a URL query string based on a set of key-value pairs of parameters.

displayexception(exc)

Display an exception as a dismissable client-side bootstrap modal.

modal(title, body[, options, primary, ...])

Display a client-side modal via bootstrap.

setlocation(location)

Direct the user to a new address.

setloglevel(level)

Set the log level for the booteel module in both Python and JavaScript.

_booteel_handlemodal(modal_id, choice)[source]
Parameters:
  • modal_id (str)

  • choice (str)

_booteel_log(level, message, args)[source]

Expose logging interface to booteel.js.

Parameters:
  • level (int)

  • message (str)

  • args (list[Any])

_booteel_logger_getlevel()[source]

Grant access to the module’s loglevel to booteel.js.

buildquery(params)[source]

Build a URL query string based on a set of key-value pairs of parameters.

Return type:

str

Parameters:

params (dict[str, str])

displayexception(exc)[source]

Display an exception as a dismissable client-side bootstrap modal.

Parameters:

exc (Exception)

modal(title, body, options=None, primary='ok', dismissable=True, callback=None, icon=None)[source]

Display a client-side modal via bootstrap.

Return type:

str

Parameters:
  • title (str)

  • body (str)

  • options (Optional[dict[str, str]])

  • primary (str)

  • dismissable (bool)

  • callback (Optional[Callable[[str, str], bool]])

  • icon (Optional[str])

setlocation(location)[source]

Direct the user to a new address.

Parameters:

location (str)

setloglevel(level)[source]

Set the log level for the booteel module in both Python and JavaScript.

Parameters:

level (int)