changeset 356:12ecdb63a8cb

merging David-Wikler/clarified-mutual-exclusion-of-callback-1585511553371
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Mar 2020 07:56:28 +0200
parents 1ba75bac55fd (current diff) e4e9cca89c64 (diff)
children 6b432ce3a56e
files
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 <http://stackoverflow.com/questions/3872427/how-to-send-line-break-with-curl>`__ 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: