diff Sphinx/source/plugins/python.rst @ 973:2d817288cad4

added python storage commitment
author Alain Mazy <am@osimis.io>
date Mon, 28 Aug 2023 18:45:57 +0200
parents a6bf749b3c04
children eb49a4ad8fbc
line wrap: on
line diff
--- a/Sphinx/source/plugins/python.rst	Thu Aug 24 12:57:46 2023 +0200
+++ b/Sphinx/source/plugins/python.rst	Mon Aug 28 18:45:57 2023 +0200
@@ -642,7 +642,7 @@
 to handle HL7 such as `python-hl7 library
 <https://python-hl7.readthedocs.io/en/latest/>`__.
 
-The following Python script reproduces features similar to the
+The following Python script reproduces features similar to the 
 :ref:`sample modality worklists plugin <worklists-plugin>`:
 
 .. literalinclude:: python/worklist.py
@@ -800,6 +800,19 @@
                     :language: python
 
 
+Storage Commitment SCP (new in 4.1)
+...................................
+
+Starting with release 4.1 of the Python plugin, it is possible to
+provide your own implementation of the :ref:`Storage Commitment <storage-commitment>`.
+
+This can be used, e.g, to check that you have backup the orthanc data in a
+long term storage.
+
+.. literalinclude:: python/storage-commitment-default.py
+                    :language: python
+
+
 Performance and concurrency
 ---------------------------