Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
acfdd0e3
Commit
acfdd0e3
authored
Mar 20, 2015
by
LE GAC Renaud
Browse files
Improve reporting for JSON type error.
parent
93240118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
controllers/report.py
controllers/report.py
+2
-2
static/ABOUT.html
static/ABOUT.html
+1
-1
No files found.
controllers/report.py
View file @
acfdd0e3
...
...
@@ -100,8 +100,8 @@ def grid():
else
:
return
INLINE_ALERT
%
(
"Error"
,
"Report id is not defined."
)
except
ValueError
,
msg
:
return
INLINE_ALERT
%
(
"JSON Error..."
,
msg
)
except
(
IndexError
,
TypeError
,
ValueError
)
as
e
:
return
INLINE_ALERT
%
(
"JSON Error..."
,
e
)
# extract the configurations for the Ext.data.Store and App.grid.Panel.
store
=
report
.
to_store
()
...
...
static/ABOUT.html
View file @
acfdd0e3
...
...
@@ -79,6 +79,6 @@
<p
class=
"my-p"
>
Ce logiciel est distribué sous la licence opence source
<a
href=
"http://www.cecill.info/"
target=
"_blank"
>
CeCILL
</a>
.
</p>
<p
class=
"my-p"
>
©
2010 - 201
4
Renaud Le Gac
</p>
<p
class=
"my-p"
>
©
2010 - 201
5
Renaud Le Gac
</p>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment