plugin_dbui issueshttps://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues2018-05-02T02:12:19+02:00https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/31explore the data binding mechanism2018-05-02T02:12:19+02:00LE GAC Renaudexplore the data binding mechanism* It is describe here http://docs.sencha.com/extjs/6.2.0/guides/application_architecture/view_models_data_binding.html
* Have look to the kitchen Sink `Components > Data binding`
* Example of it use in `Event.RowEventData` or `Event.RowH...* It is describe here http://docs.sencha.com/extjs/6.2.0/guides/application_architecture/view_models_data_binding.html
* Have look to the kitchen Sink `Components > Data binding`
* Example of it use in `Event.RowEventData` or `Event.RowHistoryData`
* It should allow to simplify the implementation of the *linked ComboBox*
* It should allow to simplify the implementation of the `Dbui.grid.plugin.RowEditorBase`
* ...https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/27Explore the build option of the sencha command to build javaScript Library2018-05-02T02:12:19+02:00LE GAC RenaudExplore the build option of the sencha command to build javaScript Library* `plugin_dbui`
* javaScript libraries are obtained by using the `compile` option of the `senchCmd`.
* This approach required to load all Ext JS class via the option `--class` and to exclude the namesapce `Ext`.
* This is tricky with...* `plugin_dbui`
* javaScript libraries are obtained by using the `compile` option of the `senchCmd`.
* This approach required to load all Ext JS class via the option `--class` and to exclude the namesapce `Ext`.
* This is tricky with version Ext JS 6 since the source are distributed in several places. In addition, there is several themes.
* Might be simplify by using `sencha app build` which generate the javaScript for the whole application!
* The build process relies on 3 files: `app.json`, `index.html` and `build.xml`. The first one should be modified to customize the build.
* These files can be ontained by creating a sencha application from scratch:
> sencha -sdk /path/to/ext6 generate app MyApp /path/to/my-app
* Mode information in: http://docs.sencha.com/cmd/guides/extjs/cmd_app.htmlhttps://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/26Use Ext.grid.plugin.Eporter or Ext.exporter.Base2018-05-02T02:12:19+02:00LE GAC RenaudUse Ext.grid.plugin.Eporter or Ext.exporter.Base* New functionalities introduce in Ext JS 6
* To be used in `Dbui.grid.mixin.ExportBase` and it friends
* An probably elsewhere.
* ...* New functionalities introduce in Ext JS 6
* To be used in `Dbui.grid.mixin.ExportBase` and it friends
* An probably elsewhere.
* ...https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/19Add in the documentation the Wizad class and the RowEditorAddWizard plugin2018-05-02T02:12:19+02:00LE GAC RenaudAdd in the documentation the Wizad class and the RowEditorAddWizard plugin* Describe how to create a `wizard` in the book
* Describe the two classes in the API* Describe how to create a `wizard` in the book
* Describe the two classes in the APIhttps://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/16The List widget returns to many information2018-05-02T02:12:19+02:00LE GAC RenaudThe List widget returns to many information* The method `getValue` of the `List` widget returns to many information.
* One of the user case is the `harvester wizard` for the `track_publications` application. * The method `getValue` of the `List` widget returns to many information.
* One of the user case is the `harvester wizard` for the `track_publications` application. https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/12Integer field number accept comma2018-05-02T02:12:19+02:00LE GAC RenaudInteger field number accept comma* Local is **french**
* A form field collects interger value.
* It is instantiate as a FieldNumber
* It is possible to type digit **and** a comma !!
* Modify the configuration of the ExtJS field in ``converters/FTYPE_TO_XTYPE``
* Th...* Local is **french**
* A form field collects interger value.
* It is instantiate as a FieldNumber
* It is possible to type digit **and** a comma !!
* Modify the configuration of the ExtJS field in ``converters/FTYPE_TO_XTYPE``
* The user case is ``track_publications/harvest/edit_insert``https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/10Review the documentation2018-05-02T02:12:19+02:00LE GAC RenaudReview the documentation* Better use of `sphinx` in the documentation of the *track_publication API*
* Propagate them to the documentation of the *plugin dbui API* * Better use of `sphinx` in the documentation of the *track_publication API*
* Propagate them to the documentation of the *plugin dbui API* https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/9Review the initialisation of the Selector class2018-05-02T02:12:19+02:00LE GAC RenaudReview the initialisation of the Selector class* It should be easy to initialize a `selector` also there is no data in the `request.var`
* The user case can be found in `track_publications/graph/dashboard`
* The current code:
```
cfg = Storage()
cfg.Graph_selectorCumul...* It should be easy to initialize a `selector` also there is no data in the `request.var`
* The user case can be found in `track_publications/graph/dashboard`
* The current code:
```
cfg = Storage()
cfg.Graph_selectorCumulative = 'True'
cfg.Graph_selectorId = ''
cfg.Graph_selectorId_authors_roles = ''
cfg.Graph_selectorId_graphs = ''
cfg.Graph_selectorId_projects = ''
cfg.Graphs_selectorId_teams = ''
cfg.Graph_selectorTime = T('month')
cfg.Graph_selectorYear_start = datetime.now().year
cfg.Graph_selectorYear_end = ''
request.vars.update(cfg)
fields = ('cumulative','id_graphs', 'time', 'year_start','year_end')
selector = Selector(virtdb.graph_selector, exclude_fields=fields)
```
should become:
```
fields = ('cumulative','id_graphs', 'time', 'year_start','year_end')
selector = Selector(virtdb.graph_selector, exclude_fields=fields)
selector.year_start = datetime.now().year
selector.cumulative = True
```https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/6Open Message box alert from a tree node leaf2018-05-02T02:12:19+02:00LE GAC RenaudOpen Message box alert from a tree node leaf* It is possible to create a window when clicking on a leaf of the tree node.
* In the same way, it should be possible to create `Ext.Msg.alert` window. This is useful to launch a command and to inform the user that it is done, finish, ...* It is possible to create a window when clicking on a leaf of the tree node.
* In the same way, it should be possible to create `Ext.Msg.alert` window. This is useful to launch a command and to inform the user that it is done, finish, ...https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/5Review the logic for the function get_all_tables2018-05-02T02:12:19+02:00LE GAC RenaudReview the logic for the function get_all_tables* The function [get_all_tables](modules/helper.py) is used to get the list of the database tables including alias tables.
* It is called by the controller `plugin_dbui/dbui_conf` to create the Ext JS configuration files for the client.
...* The function [get_all_tables](modules/helper.py) is used to get the list of the database tables including alias tables.
* It is called by the controller `plugin_dbui/dbui_conf` to create the Ext JS configuration files for the client.
* The web2py scheduler introduces additional database tables which are never used by the client. However the controller `plugin_dbui/dbui_conf` creates the configuration files for these tables!
* In order to improve the situation, the list of tables used by the client should be tunable by adding more `plugin_dbui` configuration parameter like `tables`, `excluded_tables`. In addition the relation with the `tables` variable defined in the model [common_setting.py](models/common_setting.py) has to be reviewed.https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/34migrate to mathjax 32020-01-09T16:25:15+01:00LE GAC Renaudmigrate to mathjax 3* currently running with `mathjax 2.7.0`
* major version is available `mathjax 3.0.0` with many improvements
* require to modify [modules/plugin_dbui/dbui.py](modules/plugin_dbui/dbui.py)
"mathjax", {
"css": None...* currently running with `mathjax 2.7.0`
* major version is available `mathjax 3.0.0` with many improvements
* require to modify [modules/plugin_dbui/dbui.py](modules/plugin_dbui/dbui.py)
"mathjax", {
"css": None,
"debug": "static/plugin_mathjax/es5/tex-chtml.js",
"lg": None,
"libmin": "static/plugin_mathjax/es5/tex-chtml.js"}
* require to modify [src/plugin/MathJax.js](src/plugin/MathJax.js).
Few minor improvements. The core is in:
onProcessMath: function () {
"use strict";
var me = this,
dom = Ext.getDom(me.target.getEl());
if ((!me.activated) || (dom === null)) {
return;
}
// mask the viewport, MatJax process and unmask
me.viewport.mask(me.textMask);
MathJax.typeset([dom]);
me.viewport.unmask();
}
* require to modify [views/plugin_dbui/index.html](views/plugin_dbui/index.html):
<script>
window.MathJax = {
tex: {
inlineMath: [['$','$']],
displayMath: [['$$','$$']],
processEscapes: true
},
options: {
renderActions: {
addMenu: [],
checkLoading: []
},
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
}
};
</script>
* in dec 2019, first tentative in the branch `33-python37-matjax3`. It was almost working, but latex equation are not translated after an record update...
* to be worked again may be with an update version of `MathJax`
* update git repository of `plugin_dbui/static/plugin_mathjax`
* ...
https://gitlab.in2p3.fr/w2pext/plugin_dbui/-/issues/35add logger2020-01-31T09:57:19+01:00LE GAC Renaudadd logger* logging mechanism is working fine with web2py (see http://web2py.com/books/default/chapter/29/04/the-core#Logging)
* It has been implemented successfully in `limbra`
* Create a dedicated logger for `plugin_dbui` → `web2py.app.plugin_db...* logging mechanism is working fine with web2py (see http://web2py.com/books/default/chapter/29/04/the-core#Logging)
* It has been implemented successfully in `limbra`
* Create a dedicated logger for `plugin_dbui` → `web2py.app.plugin_dbui`
* Replace many debug statements by `logger.debug(blabla)` or `logger.info(blabla)`
* The `debug` keyword in the URL will be only used to load the debug version of JavaScript library
* ...