comparison Sphinx/source/plugins/python.rst @ 642:a76d83a00c68

definition of stable resources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Apr 2021 10:34:13 +0200
parents b3e75cef601d
children 17c1ff4e6ae4
comparison
equal deleted inserted replaced
641:a8925284df0b 642:a76d83a00c68
393 .................... 393 ....................
394 394
395 .. highlight:: python 395 .. highlight:: python
396 396
397 Here is a sample Python plugin that routes any :ref:`stable study 397 Here is a sample Python plugin that routes any :ref:`stable study
398 <lua-callbacks>` to a modality named ``samples`` (as declared in the 398 <stable-resources>` to a modality named ``samples`` (as declared in the
399 ``DicomModalities`` configuration option):: 399 ``DicomModalities`` configuration option)::
400 400
401 import orthanc 401 import orthanc
402 402
403 def OnChange(changeType, level, resourceId): 403 def OnChange(changeType, level, resourceId):