summaryrefslogtreecommitdiff
path: root/NT/src/rendercontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NT/src/rendercontext.cpp')
-rw-r--r--NT/src/rendercontext.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/NT/src/rendercontext.cpp b/NT/src/rendercontext.cpp
index 28e722d..77a7701 100644
--- a/NT/src/rendercontext.cpp
+++ b/NT/src/rendercontext.cpp
@@ -214,7 +214,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
string graph_filename=graph_path+command.body;
string graph_body="";
if (Poco::File(graph_filename).exists()) {;
- add_queue(Session_task(command.uid,LOAD_GRAPH,graph_filename));
+ add_queue(Session_task(command.uid,LOAD_GRAPH_FILE,graph_filename));
status=HTTPResponse::HTTP_OK;
logger.information("Loading graph from file: "+command.body);
XML.addValue("status","Loading graph from file: "+command.body);
@@ -232,8 +232,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
readable=false;
}
if (readable) {
- graph_body=command.body;
- add_queue(Session_task(command.uid,LOAD_GRAPH));
+ add_queue(Session_task(command.uid,LOAD_GRAPH_STRING,command.body));
status=HTTPResponse::HTTP_OK;
logger.information("Loading graph from body request");
XML.addValue("status","Loading graph from body request");
@@ -260,6 +259,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
status=HTTPResponse::HTTP_OK;
}
}
+ /*
if (command.commands[1]=="signal") {
if (command.method=="GET") { //generate xml from 1st signal output
if (state==IDLE) {
@@ -499,4 +499,5 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
XML.addValue("error","Bad request");
}
}
+ */
}