Upgrading from version 1.5.0
MATLAB
- Rename the following packages (using regular expressions) in the order that they appear.
Old | New |
---|---|
monkeyproof\.webframework_v1_5_0\.formio | simian.gui_v2_0_0 |
monkeyproof\.webframework_v1_5_0\.ui\.Uiformio | simian.local_v2_0_0.Uiformio |
monkeyproof\.webframework_v1_5_0 | simian.gui_v2_0_0 |
- Rename the
json
field ofpayload_out
toform
ingui_init
(and othergui*
functions, if applicable). - On
DataGrid
,EditGrid
andDataTables
components usesetOutputAs('table')
to makeutils.getSubmissionData
return atable
(if needed). - On
DateTime
andDay
components usesetOutputAs('datetime')
to makeutils.getSubmissionData
return adatetime
(if needed). - The composed component
HtmlTable
has been removed, use the componentHtmlTable
instead.- Accordingly the
Content.createTable
,Content.updateTable
,utils.createCustomTable
andutils.updateTable
functions have been removed.
- Accordingly the
- The
FontSize
options forEditGrid
andDataGrid
have been removed, use CSS classes to achieve the same result. - The positional argument
Keys
inTabs.setContent
is now an optional named parameter. Either prepend the argument with'Keys',
, or remove the keys input argument altogether.
Python
- Rename the following modules in the order that they appear:
Old | New |
---|---|
monkeyproof.webframework.formio | simian.gui |
monkeyproof.webframework.ui.ui_formio | simian.local |
monkeyproof.webframework | simian.gui |
entrypoint | simian.entrypoint |
Note: when importing using
from ... import ...
there are many possible combinations to refer to the same namespace. Not all of them will be found with a simple search and replace.
- Rename the
json
field ofpayload_out
toform
ingui_init
(and othergui*
functions, if applicable). - Remove the
pywebview
keyword argument fromUiformio
calls. - On
DataGrid
,EditGrid
andDataTables
components usesetOutputAs('DataFrame')
to makeutils.getSubmissionData
return aDataFrame
(if needed). - On
DateTime
andDay
components usesetOutputAs('datetime')
to makeutils.getSubmissionData
return adatetime
(if needed). - Replace
fromPayload
on Plotly components withutils.getSubmissionData
. - Replace
updatePayload
on Plotly components withutils.setSubmissionData
- The composed component
HtmlTable
has been removed, use the componentHtmlTable
instead.- Accordingly the
Content.createTable
,Content.updateTable
,utils.createCustomTable
andutils.updateTable
functions have been removed.
- Accordingly the
- The
FontSize
options forEditGrid
andDataGrid
have been removed, use CSS classes to achieve the same result. - The positional argument
Keys
inTabs.setContent
is now an optional keyword argument. Either specify the argument askeys=...
, or remove the keys input argument altogether.