# HG changeset patch # User David Wikler # Date 1585511642 0 # Node ID e4e9cca89c643882fcdb9009a3754983a67ddf91 # Parent 1ba75bac55fd04690328c4c7cd09d94186089bc9 clarified mutual exclusion of Lua scripts callbacks. diff -r 1ba75bac55fd -r e4e9cca89c64 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 Sun Mar 29 19:54:02 2020 +0000 @@ -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: