Mercurial > hg > orthanc-python
annotate TODO @ 221:8e127a46128e OrthancPython-4.3
OrthancPython-4.3
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2024 09:37:44 +0200 |
parents | 3c98306828de |
children | 9574f06d8588 |
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 ""' |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
5 if the script registers the OnChangeCallback. Ex: |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
6 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
7 import orthanc |
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 def OnChange(changeType, level, resource): |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
10 print("OnChange") |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
11 orthanc.RegisterOnChangeCallback(OnChange) |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
12 |
93c6f12bf339
improved support for /reset but still not ok
Alain Mazy <am@osimis.io>
parents:
62
diff
changeset
|
13 |
146 | 14 Possible improvements: |
15 ===================== | |
16 | |
17 * In ReceivedInstanceFilter: change the orthanc.InstanceOrigin enum for an | |
18 object similar to the origin table in lua for the Python Plugin? | |
19 https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045 | |
20 | |
147 | 21 * Allow working with python virtual env (since python 3.11, we must sometimes use --break-system-packages). |
146 | 22 |
29 | 23 |
24 Primitives the Orthanc community is missing | |
25 =========================================== | |
26 | |
62 | 27 * Create Python jobs: |
28 https://groups.google.com/g/orthanc-users/c/8-OYbc3mnyI/m/Mr9QvLKeAgAJ |