Mercurial > hg > orthanc-python
annotate TODO @ 227:9574f06d8588 default tip
todo
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 08:54:11 +0200 |
parents | 3c98306828de |
children |
rev | line source |
---|---|
144
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
1 Bug: |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
2 === |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
3 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
4 * The plugin does not support calls to 'curl http://localhost:8042/tools/reset -d ""' |
227 | 5 if the script registers the OnChangeCallback. |
6 https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183 | |
7 Ex: | |
144
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
8 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
9 import orthanc |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
10 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
11 def OnChange(changeType, level, resource): |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
12 print("OnChange") |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
13 orthanc.RegisterOnChangeCallback(OnChange) |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
14 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
15 |
146 | 16 Possible improvements: |
17 ===================== | |
18 | |
19 * In ReceivedInstanceFilter: change the orthanc.InstanceOrigin enum for an | |
20 object similar to the origin table in lua for the Python Plugin? | |
21 https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045 | |
22 | |
147 | 23 * Allow working with python virtual env (since python 3.11, we must sometimes use --break-system-packages). |
146 | 24 |
29 | 25 |
26 Primitives the Orthanc community is missing | |
27 =========================================== | |
28 | |
62 | 29 * Create Python jobs: |
30 https://groups.google.com/g/orthanc-users/c/8-OYbc3mnyI/m/Mr9QvLKeAgAJ |