Mercurial > hg > orthanc
changeset 6451:bcf54b5d0fc3
fix GenerateCodeModel.py
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Wed, 19 Nov 2025 13:11:13 +0100 |
| parents | fde2085c4024 |
| children | 0b90d7ff0721 b6eac1a1b2ae |
| files | OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json OrthancServer/Resources/CodeModel/GenerateCodeModel.py |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 12:48:59 2025 +0100 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 13:11:13 2025 +0100 @@ -2234,7 +2234,7 @@ "value": 2002 }, { - "documentation": "The TCP port of the HTTP server is privileged or already in use", + "documentation": "The TCP port of the HTTP server is privileged or already in use or one of the HTTP bind addresses does not exist", "key": "HttpPortInUse", "value": 2003 },
--- a/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Wed Nov 19 12:48:59 2025 +0100 +++ b/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Wed Nov 19 13:11:13 2025 +0100 @@ -475,7 +475,7 @@ # Check that the first argument is the Orthanc context if (len(args) == 0 or args[0].type.kind != clang.cindex.TypeKind.POINTER or - args[0].type.get_pointee().spelling != 'OrthancPluginContext'): + not args[0].type.get_pointee().spelling in [ 'OrthancPluginContext', 'const OrthancPluginContext' ]): print('[INFO] Not in the Orthanc SDK: %s()' % node.spelling) continue
