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
|
Build a URL query string based on a set of key-value pairs of parameters. |
|
Display an exception as a dismissable client-side bootstrap modal. |
|
Display a client-side modal via bootstrap. |
|
Direct the user to a new address. |
|
Set the log level for the booteel module in both Python and JavaScript. |
- _booteel_log(level, message, args)[source]
Expose logging interface to booteel.js.
- Parameters:
level (int)
message (str)
args (list[Any])
- 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])