Mercurial > hg > orthanc-book
comparison Sphinx/source/plugins/python/autorouting-2.py @ 703:a589668768d7
moving python samples in separate files (2)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Jun 2021 10:07:12 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
702:6e02cd89eb6a | 703:a589668768d7 |
---|---|
1 import orthanc | |
2 | |
3 def OnChange(changeType, level, resourceId): | |
4 if changeType == orthanc.ChangeType.STABLE_STUDY: | |
5 print('Stable study: %s' % resourceId) | |
6 orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/store', resourceId) | |
7 | |
8 orthanc.RegisterOnChangeCallback(OnChange) |