comparison OrthancServer/OrthancRestApi/OrthancRestSystem.cpp @ 2617:912a767911b0 jobs

back to a single Lua context
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 12:45:34 +0200
parents 2f3007bf0708
children 73d7d95dd75e
comparison
equal deleted inserted replaced
2616:2f3007bf0708 2617:912a767911b0
122 122
123 std::string command; 123 std::string command;
124 call.BodyToString(command); 124 call.BodyToString(command);
125 125
126 { 126 {
127 LuaScripting::Lock lock(context.GetLuaEventHandler()); 127 LuaScripting::Lock lock(context.GetLuaScripting());
128 lock.GetLua().Execute(result, command); 128 lock.GetLua().Execute(result, command);
129 } 129 }
130 130
131 call.GetOutput().AnswerBuffer(result, "text/plain"); 131 call.GetOutput().AnswerBuffer(result, "text/plain");
132 } 132 }