# HG changeset patch # User Sebastien Jodogne # Date 1585547788 -7200 # Node ID 12ecdb63a8cbd38d262679f5fddde5e6cca30f35 # Parent 1ba75bac55fd04690328c4c7cd09d94186089bc9# Parent e4e9cca89c643882fcdb9009a3754983a67ddf91 merging David-Wikler/clarified-mutual-exclusion-of-callback-1585511553371 diff -r 1ba75bac55fd -r 12ecdb63a8cb Sphinx/source/users/lua.rst --- a/Sphinx/source/users/lua.rst Sat Mar 28 14:48:39 2020 +0100 +++ b/Sphinx/source/users/lua.rst Mon Mar 30 07:56:28 2020 +0200 @@ -27,7 +27,8 @@ To install it by the **configuration file** method, you just have to specify the path to the file containing the Lua script in the -``LuaScripts`` variable. +``LuaScripts`` variable. A comma seprated list of paths can be specified +to install multiple scripts. To upload a script stored in the file "``script.lua``" through the **REST API**, use the following command:: @@ -48,7 +49,6 @@ `__ of the possible comments inside the Lua script. - Lua API ------- @@ -58,7 +58,7 @@ Callbacks to react to events ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The Lua engine of Orthanc comes invokes the following callbacks that +The Lua engine of Orthanc invokes the following callbacks that are triggered on various events. Here are the **generic events**: * ``function Initialize()``: Invoked as soon as the Orthanc server is started. @@ -141,7 +141,9 @@ *Note:* All of these callbacks are guaranteed to be **invoked in mutual exclusion**. This implies that Lua scripting in Orthanc does -not support any kind of concurrency. +not support any kind of concurrency. If a callback is specified +multiple times in separate scripts, the event handler of the latest +loaded script is used. .. _lua-rest: