# HG changeset patch # User Sebastien Jodogne # Date 1604585849 -3600 # Node ID cdda6258a7ba80b6a6ee4a9ef2646a721a004acc # Parent d70347eecb915f2051e28570b9ed6d1688ab1dd9# Parent c00d72b90ad585a3824d3f1a81ed97d29677d874 merge diff -r d70347eecb91 -r cdda6258a7ba Sphinx/source/plugins/python.rst --- a/Sphinx/source/plugins/python.rst Thu Nov 05 15:17:15 2020 +0100 +++ b/Sphinx/source/plugins/python.rst Thu Nov 05 15:17:29 2020 +0100 @@ -360,6 +360,19 @@ orthanc.RegisterOnChangeCallback(OnChange) +Note that, if you want to use an orthanc plugin to transfer the study, +you should use the ``RestApiPostAfterPlugins()`` method:: + + import orthanc + + def OnChange(changeType, level, resourceId): + if changeType == orthanc.ChangeType.STABLE_STUDY: + print('Stable study: %s' % resourceId) + orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/store', resourceId) + + orthanc.RegisterOnChangeCallback(OnChange) + + Rendering a thumbnail using PIL/Pillow ......................................