comparison Sphinx/source/users/lua.rst @ 606:2f000ee9b20d

removal of Lua callbacks for transfer syntaxes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 Jan 2021 16:59:54 +0100
parents 2922fb1bd65e
children 15a0635eef4b
comparison
equal deleted inserted replaced
605:445e2841e763 606:2f000ee9b20d
12 script. This page summarizes the possibilities of Orthanc server-side 12 script. This page summarizes the possibilities of Orthanc server-side
13 scripting. 13 scripting.
14 14
15 Many other examples are `available in the source distribution 15 Many other examples are `available in the source distribution
16 <https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Resources/Samples/Lua/>`__. 16 <https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Resources/Samples/Lua/>`__.
17
18 A more expressive alternative to Lua scripts is provided by
19 :ref:`Python plugins <python-plugins>`.
17 20
18 21
19 Installing a Lua script 22 Installing a Lua script
20 ----------------------- 23 -----------------------
21 24
132 or some attachment associated with the given series has been updated 135 or some attachment associated with the given series has been updated
133 (new in Orthanc 1.6.0). 136 (new in Orthanc 1.6.0).
134 * ``function OnUpdatedInstance(instanceId)``: Invoked when some 137 * ``function OnUpdatedInstance(instanceId)``: Invoked when some
135 metadata or some attachment associated with the given instance has 138 metadata or some attachment associated with the given instance has
136 been updated (new in Orthanc 1.6.0). 139 been updated (new in Orthanc 1.6.0).
137 140
138 Furthermore, whenever a DICOM association is negotiated for C-Store 141 Furthermore, in versions of Orthanc <= 1.8.2, whenever a DICOM
139 SCP, several callbacks are successively invoked to specify which 142 association is negotiated for C-Store SCP, several callbacks are
140 **transfer syntaxes** are accepted for the association. These 143 successively invoked to specify which **transfer syntaxes** are
141 callbacks are listed in `this sample script 144 accepted for the association. These callbacks are listed in `this
142 <https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Resources/Samples/Lua/TransferSyntaxEnable.lua>`__. 145 sample script
146 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.8.2/OrthancServer/Resources/Samples/Lua/TransferSyntaxEnable.lua>`__.
147 These callbacks were removed in Orthanc 1.9.0.
143 148
144 *Note:* All of these callbacks are guaranteed to be **invoked in 149 *Note:* All of these callbacks are guaranteed to be **invoked in
145 mutual exclusion**. This implies that Lua scripting in Orthanc does 150 mutual exclusion**. This implies that Lua scripting in Orthanc does
146 not support any kind of concurrency. 151 not support any kind of concurrency.
147 152