summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/Proxy.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-03-08 15:47:34 -0800
committerMark Spruiell <mes@zeroc.com>2017-03-08 15:47:34 -0800
commitfc32c2a7805365e7f40ab8a664f94efae35137da (patch)
tree9004df864027bfef52218772e88357e01d9bdf0c /python/modules/IcePy/Proxy.cpp
parentRefreshed Ice::optional (diff)
downloadice-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/Proxy.cpp')
-rw-r--r--python/modules/IcePy/Proxy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/modules/IcePy/Proxy.cpp b/python/modules/IcePy/Proxy.cpp
index c3fa273fa47..2186cef5bc3 100644
--- a/python/modules/IcePy/Proxy.cpp
+++ b/python/modules/IcePy/Proxy.cpp
@@ -1006,8 +1006,8 @@ proxyIceGetEndpointSelection(ProxyObject* self)
PyObject* cls = lookupType("Ice.EndpointSelectionType");
assert(cls);
- PyObjectHandle rnd = PyObject_GetAttrString(cls, STRCAST("Random"));
- PyObjectHandle ord = PyObject_GetAttrString(cls, STRCAST("Ordered"));
+ PyObjectHandle rnd = getAttr(cls, "Random", false);
+ PyObjectHandle ord = getAttr(cls, "Ordered", false);
assert(rnd.get());
assert(ord.get());
@@ -1051,8 +1051,8 @@ proxyIceEndpointSelection(ProxyObject* self, PyObject* args)
}
Ice::EndpointSelectionType val;
- PyObjectHandle rnd = PyObject_GetAttrString(cls, STRCAST("Random"));
- PyObjectHandle ord = PyObject_GetAttrString(cls, STRCAST("Ordered"));
+ PyObjectHandle rnd = getAttr(cls, "Random", false);
+ PyObjectHandle ord = getAttr(cls, "Ordered", false);
assert(rnd.get());
assert(ord.get());
if(rnd.get() == type)
@@ -2191,7 +2191,7 @@ AMI_Object_ice_flushBatchRequestsI::exception(const Ice::Exception& ex)
}
else
{
- PyObjectHandle method = PyObject_GetAttrString(_callback, STRCAST(methodName.c_str()));
+ PyObjectHandle method = getAttr(_callback, methodName, false);
assert(method.get());
PyObjectHandle exh = convertException(ex);
assert(exh.get());
@@ -2213,7 +2213,7 @@ AMI_Object_ice_flushBatchRequestsI::sent(bool)
const string methodName = "ice_sent";
if(PyObject_HasAttrString(_callback, STRCAST(methodName.c_str())))
{
- PyObjectHandle method = PyObject_GetAttrString(_callback, STRCAST(methodName.c_str()));
+ PyObjectHandle method = getAttr(_callback, methodName, false);
assert(method.get());
PyObjectHandle args = PyTuple_New(0);
PyObjectHandle tmp = PyObject_Call(method.get(), args.get(), 0);