Changelog¶
Version 0.3¶
- Added
weblab_user.locale
for i18n processing.- Added
weblab_user.experiment_name
,weblab_user.category_name
andweblab_user.experiment_id
as more metadata about the context on how the laboratory is used.- Added
task.done
,task.failed
,task.finished
,task.running
,task.submitted
so as to avoid playing with strings.WEBLAB_CALLBACK_URL
is now optional, and/callback
by default.- Added
current_task
that can be called inside a task to get thetask_id
or update data.- Added
current_task.data
andcurrent_task.update_data
so as to update JSON-friendly data to measure the progress of the task.- Added
@weblab.user_loader
. If set, you can later run sayuser = weblab_user.user
, and it returns a user (e.g., from your database)- Supported arguments on
{{ weblab_poll_script() }}
:logout_on_close
, which logs out when you close the current window (by defaultFalse
); andcallback
if you want to be notified when the time has passed or an error occurs.- Add
flask loop
for running tasks and thread cleaners concurrently.
Version 0.2¶
Version 0.1 was uploaded to Pypi, etc., but was not production ready (no tests, docs, some bugs, etc.)