Mercurial > hg > orthanc-python
comparison Sources/PythonLock.cpp @ 63:32de70a1e4c7
New functions from the SDK wrapped in Python: CreateDicom, RegisterFindCallback, RegisterMoveCallback
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jun 2021 18:19:27 +0200 |
parents | 23f3099bed47 |
children | cbfc72a53970 |
comparison
equal
deleted
inserted
replaced
62:d82eef8c98fc | 63:32de70a1e4c7 |
---|---|
289 | 289 |
290 #endif | 290 #endif |
291 | 291 |
292 | 292 |
293 | 293 |
294 OrthancPluginErrorCode PythonLock::CheckCallbackSuccess(const std::string& callbackDetails) | |
295 { | |
296 std::string traceback; | |
297 | |
298 if (HasErrorOccurred(traceback)) | |
299 { | |
300 OrthancPlugins::LogError("Error in the " + callbackDetails + ", traceback:\n" + traceback); | |
301 return OrthancPluginErrorCode_Plugin; | |
302 } | |
303 else | |
304 { | |
305 return OrthancPluginErrorCode_Success; | |
306 } | |
307 } | |
308 | |
309 | |
310 | |
294 void PythonLock::GlobalInitialize(const std::string& moduleName, | 311 void PythonLock::GlobalInitialize(const std::string& moduleName, |
295 const std::string& exceptionName, | 312 const std::string& exceptionName, |
296 ModuleFunctionsInstaller moduleFunctions, | 313 ModuleFunctionsInstaller moduleFunctions, |
297 ModuleClassesInstaller moduleClasses, | 314 ModuleClassesInstaller moduleClasses, |
298 bool verbose) | 315 bool verbose) |