comparison 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
comparison
equal deleted inserted replaced
798:80b9ceeb4045 799:ecf431e1bd44
753 The ``contentType`` can be used to apply a special treatment to some 753 The ``contentType`` can be used to apply a special treatment to some
754 types of attachments (typically, DICOM instances). This parameter 754 types of attachments (typically, DICOM instances). This parameter
755 takes its values from the ``orthanc.ContentType`` enumeration. 755 takes its values from the ``orthanc.ContentType`` enumeration.
756 756
757 757
758 .. _python_received_instance:
759
760 Modifying received instances (new in 3.5 - not released yet)
761 ...........................................
762
763 Starting with release 3.5 of the Python plugin, it is possible to
764 modify instances received by Orthanc before they are stored in
765 the storage. This is usually easier to perform modification at this
766 stage compared to using the ``/modify`` route once the instances
767 has been stored.
768
769 .. literalinclude:: python/received-instance-callback.py
770 :language: python
771
772
773
758 Performance and concurrency 774 Performance and concurrency
759 --------------------------- 775 ---------------------------
760 776
761 **Important:** This section only applies to UNIX-like systems. The 777 **Important:** This section only applies to UNIX-like systems. The
762 ``multiprocessing`` package will not work on Microsoft Windows as the 778 ``multiprocessing`` package will not work on Microsoft Windows as the