Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
d54713db
Commit
d54713db
authored
May 12, 2016
by
Fabian-Andree Heidemann
Browse files
[jsondata] correctly parse argument on server side
parent
2268c2e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/controller/ajax.py
View file @
d54713db
...
...
@@ -84,6 +84,7 @@ class AjaxController(AbstractController):
def
setjson
(
self
,
key
,
value
,
wid
=
None
):
db
=
cherrypy
.
request
.
db
user_id
=
self
.
get
(
"user_id"
)
wid
=
int
(
wid
)
if
wid
else
None
JSONData
.
set_value
(
db
,
user_id
=
user_id
,
key
=
key
,
...
...
@@ -96,7 +97,7 @@ class AjaxController(AbstractController):
def
getjson
(
self
,
key
,
wid
=
None
):
db
=
cherrypy
.
request
.
db
user_id
=
self
.
get
(
"user_id"
)
wid
=
int
(
wid
)
wid
=
int
(
wid
)
if
wid
else
None
return
JSON
.
dumps
(
JSONData
.
get_value
(
db
,
user_id
=
user_id
,
key
=
key
,
...
...
Write
Preview
Supports
Markdown
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