Mercurial > hg > orthanc-python
comparison Sources/IncomingHttpRequestFilter.cpp @ 52:13eb87c58b0a
removed bad comment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Dec 2020 16:49:37 +0100 |
parents | 70abe3ebbbfc |
children | 23f3099bed47 |
comparison
equal
deleted
inserted
replaced
51:3dc37a5af1b1 | 52:13eb87c58b0a |
---|---|
39 const char *const *getArgumentsValues) | 39 const char *const *getArgumentsValues) |
40 { | 40 { |
41 try | 41 try |
42 { | 42 { |
43 PythonLock lock; | 43 PythonLock lock; |
44 /** | 44 |
45 * Construct an instance object of the "orthanc.RestOutput" | |
46 * class. This is done by calling the constructor function | |
47 * "sdk_OrthancPluginRestOutput_Type". | |
48 **/ | |
49 PythonObject args(lock, PyTuple_New(1)); | 45 PythonObject args(lock, PyTuple_New(1)); |
50 | 46 |
51 { | 47 { |
52 PythonString str(lock, uri); | 48 PythonString str(lock, uri); |
53 PyTuple_SetItem(args.GetPyObject(), 0, str.Release()); | 49 PyTuple_SetItem(args.GetPyObject(), 0, str.Release()); |
83 PyDict_SetItemString(getArguments.GetPyObject(), getArgumentsKeys[i], str.Release()); | 79 PyDict_SetItemString(getArguments.GetPyObject(), getArgumentsKeys[i], str.Release()); |
84 } | 80 } |
85 | 81 |
86 PyDict_SetItemString(kw.GetPyObject(), "get", getArguments.Release()); | 82 PyDict_SetItemString(kw.GetPyObject(), "get", getArguments.Release()); |
87 } | 83 } |
88 | |
89 | 84 |
90 PythonObject result(lock, PyObject_Call(incomingHttpRequestFilter_, | 85 PythonObject result(lock, PyObject_Call(incomingHttpRequestFilter_, |
91 args.GetPyObject(), kw.GetPyObject())); | 86 args.GetPyObject(), kw.GetPyObject())); |
92 | 87 |
93 std::string traceback; | 88 std::string traceback; |