Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
3d2ce478
Commit
3d2ce478
authored
Jul 09, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
platform: respect json syntax when printing the input data
parent
642c1ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/platform/__init__.py
dream/platform/__init__.py
+2
-2
No files found.
dream/platform/__init__.py
View file @
3d2ce478
...
...
@@ -2,7 +2,6 @@ import json
import
traceback
import
multiprocessing
from
pprint
import
pformat
from
flask
import
Flask
,
jsonify
,
redirect
,
url_for
from
flask
import
request
...
...
@@ -17,7 +16,8 @@ def front_page():
@
app
.
route
(
"/runSimulation"
,
methods
=
[
"POST"
,
"OPTIONS"
])
def
runSimulation
():
parameter_dict
=
request
.
json
[
'json'
]
app
.
logger
.
debug
(
"running with:
\
n
%s"
%
(
pformat
(
parameter_dict
,)))
app
.
logger
.
debug
(
"running with:
\
n
%s"
%
(
json
.
dumps
(
parameter_dict
,
sort_keys
=
True
,
indent
=
2
)))
try
:
timeout
=
int
(
parameter_dict
[
'general'
][
'processTimeout'
])
...
...
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