Mercurial > hg > orthanc-book
diff Sphinx/source/plugins/python.rst @ 799:ecf431e1bd44
python sample for ReceivedInstanceCallback
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 14 Dec 2021 22:22:37 +0100 |
parents | 4e9dc26a5cb9 |
children | 83beec704c98 |
line wrap: on
line diff
--- a/Sphinx/source/plugins/python.rst Tue Dec 14 17:37:24 2021 +0100 +++ b/Sphinx/source/plugins/python.rst Tue Dec 14 22:22:37 2021 +0100 @@ -755,6 +755,22 @@ takes its values from the ``orthanc.ContentType`` enumeration. +.. _python_received_instance: + +Modifying received instances (new in 3.5 - not released yet) +........................................... + +Starting with release 3.5 of the Python plugin, it is possible to +modify instances received by Orthanc before they are stored in +the storage. This is usually easier to perform modification at this +stage compared to using the ``/modify`` route once the instances +has been stored. + +.. literalinclude:: python/received-instance-callback.py + :language: python + + + Performance and concurrency ---------------------------