Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 397:941ea46e9e26 lua-scripting
lua filter of new instances
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 May 2013 16:34:00 +0200 |
parents | 9784f19f7e1b |
children | 2d269089078f |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Thu May 02 11:02:15 2013 +0200 +++ b/OrthancServer/main.cpp Thu May 02 16:34:00 2013 +0200 @@ -65,20 +65,7 @@ { if (dicomFile.size() > 0) { - LuaContext& lua = server_.GetLuaContext(); - // TODO : Is existing trigger ? - LuaFunctionCall call(lua, "NewInstanceFilter"); - call.PushJSON(dicomJson); - call.PushString(remoteAet); - - if (call.ExecutePredicate()) - { - server_.Store(&dicomFile[0], dicomFile.size(), dicomSummary, dicomJson, remoteAet); - } - else - { - LOG(WARNING) << "An instance has been discarded by a filter"; - } + server_.Store(&dicomFile[0], dicomFile.size(), dicomSummary, dicomJson, remoteAet); } } };