Commit 72ae3edc authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update view/grid modifying the mechanism which transfers data from python to JavaScript.

parent c1189a12
......@@ -22,21 +22,14 @@
response.write(H2(title, _class="dbui-h2 dbui-small-cap"))
response.write(DIV(_id=divgrid))
#
# Export python variables to the javascript
#
jsvars = ["cfgStore = %s" % cfg_store,
"columns = %s" % grid.columns,
"divgrid = '%s'" % divgrid,
"features = %s" % grid.features]
jsvars = " var %s;" % ',\n'.join(jsvars)
response.write(SCRIPT(jsvars), escape=False)
}}
<script type="text/javascript">
<script>
var grid;
var cfgStore = {{=XML(cfg_store)}},
columns = {{=XML(grid.columns)}},
divgrid = '{{=divgrid}}',
features ={{=XML(grid.features)}},
grid;
//
// instantiate the grid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment