diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-03-08 15:47:34 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2017-03-08 15:47:34 -0800 |
commit | fc32c2a7805365e7f40ab8a664f94efae35137da (patch) | |
tree | 9004df864027bfef52218772e88357e01d9bdf0c /python/modules/IcePy/Connection.cpp | |
parent | Refreshed Ice::optional (diff) | |
download | ice-fc32c2a7805365e7f40ab8a664f94efae35137da.tar.bz2 ice-fc32c2a7805365e7f40ab8a664f94efae35137da.tar.xz ice-fc32c2a7805365e7f40ab8a664f94efae35137da.zip |
- ICE-6845 - More dispatcher fixes for Python
- Deprecated the InitializationData.threadHook member
- Added threadStart and threadStop members to InitializationData
- InitializationData.batchRequestInterceptor can now be a callable
Diffstat (limited to 'python/modules/IcePy/Connection.cpp')
-rw-r--r-- | python/modules/IcePy/Connection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/modules/IcePy/Connection.cpp b/python/modules/IcePy/Connection.cpp index 2950fc87717..69caaaeacb3 100644 --- a/python/modules/IcePy/Connection.cpp +++ b/python/modules/IcePy/Connection.cpp @@ -304,7 +304,7 @@ connectionClose(ConnectionObject* self, PyObject* args) return 0; } - PyObjectHandle v = PyObject_GetAttrString(mode, STRCAST("_value")); + PyObjectHandle v = getAttr(mode, "_value", true); assert(v.get()); Ice::ConnectionClose cc = static_cast<Ice::ConnectionClose>(PyLong_AsLong(v.get())); @@ -427,7 +427,7 @@ connectionFlushBatchRequests(ConnectionObject* self, PyObject* args) return 0; } - PyObjectHandle v = PyObject_GetAttrString(compressBatch, STRCAST("_value")); + PyObjectHandle v = getAttr(compressBatch, "_value", true); assert(v.get()); Ice::CompressBatch cb = static_cast<Ice::CompressBatch>(PyLong_AsLong(v.get())); @@ -460,7 +460,7 @@ connectionFlushBatchRequestsAsync(ConnectionObject* self, PyObject* args, PyObje return 0; } - PyObjectHandle v = PyObject_GetAttrString(compressBatch, STRCAST("_value")); + PyObjectHandle v = getAttr(compressBatch, "_value", true); assert(v.get()); Ice::CompressBatch cb = static_cast<Ice::CompressBatch>(PyLong_AsLong(v.get())); @@ -531,7 +531,7 @@ connectionBeginFlushBatchRequests(ConnectionObject* self, PyObject* args, PyObje return 0; } - PyObjectHandle v = PyObject_GetAttrString(compressBatch, STRCAST("_value")); + PyObjectHandle v = getAttr(compressBatch, "_value", true); assert(v.get()); Ice::CompressBatch cb = static_cast<Ice::CompressBatch>(PyLong_AsLong(v.get())); @@ -833,7 +833,7 @@ connectionSetACM(ConnectionObject* self, PyObject* args) PyErr_Format(PyExc_TypeError, "value for 'close' argument must be Unset or an enumerator of Ice.ACMClose"); return 0; } - PyObjectHandle v = PyObject_GetAttrString(c, STRCAST("_value")); + PyObjectHandle v = getAttr(c, "_value", true); assert(v.get()); close = static_cast<Ice::ACMClose>(PyLong_AsLong(v.get())); } @@ -846,7 +846,7 @@ connectionSetACM(ConnectionObject* self, PyObject* args) "value for 'heartbeat' argument must be Unset or an enumerator of Ice.ACMHeartbeat"); return 0; } - PyObjectHandle v = PyObject_GetAttrString(h, STRCAST("_value")); + PyObjectHandle v = getAttr(h, "_value", true); assert(v.get()); heartbeat = static_cast<Ice::ACMHeartbeat>(PyLong_AsLong(v.get())); } |