comparison Sphinx/source/plugins/python.rst @ 852:450f0efebe4f

FilterIncomingCStoreInstance python sample
author Alain Mazy <am@osimis.io>
date Mon, 30 May 2022 17:16:15 +0200
parents c29ac12e3160
children 3e8a3a900e9e
comparison
equal deleted inserted replaced
851:f282da89c1c1 852:450f0efebe4f
782 782
783 .. literalinclude:: python/received-instance-callback.py 783 .. literalinclude:: python/received-instance-callback.py
784 :language: python 784 :language: python
785 785
786 786
787 Filtering incoming C-Store instances (new in 4.0)
788 .................................................
789
790 Starting with release 4.0 of the Python plugin, it is possible to
791 filter instances received from C-Store and return a specific error
792 code to the sending modality.
793
794 This can be used, e.g, to implement a quota per modality or return
795 an ``out-of-resources`` status if the Orthanc storage is almost full.
796
797 .. literalinclude:: python/incoming-cstore-filter.py
798 :language: python
799
787 800
788 Performance and concurrency 801 Performance and concurrency
789 --------------------------- 802 ---------------------------
790 803
791 **Important:** This section only applies to UNIX-like systems. The 804 **Important:** This section only applies to UNIX-like systems. The