Commit e6a169ea authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Detect JSON error in grid controller.

parent 6ef255e2
......@@ -64,6 +64,7 @@ def grid():
selector = MySelector(ui_table)
# extract the report configuration and the build the report
if "id_lists" in request.vars:
config = db.lists[request.vars.id_lists]
report = List(config, selector)
......@@ -79,6 +80,9 @@ def grid():
return INLINE_ALERT % ("Error", "Report id is not defined.")
except ValueError, msg:
return INLINE_ALERT % ("JSON Error...", msg)
# extract the configurations for the and App.grid.Panel.
store = report.to_store()
grid = report.to_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