Mercurial > hg > orthanc-python
view TODO @ 334:ff7d48d8d51a default tip
added Resources/Samples/SampleHttpAuthentication.py
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 21 Aug 2026 16:32:47 +0200 |
| parents | 4e1efa5fbc61 |
| children |
line wrap: on
line source
Bug: === * The plugin does not support calls to 'curl http://localhost:8042/tools/reset -d ""' if the script registers the OnChangeCallback. https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183 Ex: import orthanc def OnChange(changeType, level, resource): print("OnChange") orthanc.RegisterOnChangeCallback(OnChange) Possible improvements: ===================== * Allow working with python virtual env (since python 3.11, we must sometimes use --break-system-packages). * Allow registering multiple callbacks when you want to install multiple independent python plugin (ex: RegisterOnChangeCallback). Right now, there is a singleton in python for each callback. Primitives the Orthanc community is missing =========================================== * Create Python jobs: https://groups.google.com/g/orthanc-users/c/8-OYbc3mnyI/m/Mr9QvLKeAgAJ
