diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-02-08 22:10:01 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-02-08 22:10:01 +0000 |
commit | c79a843b280cb8cc9559126b76e4f8b8ee3a651c (patch) | |
tree | 5618e1380944dc1fb564f4cc5d67189fd44ee037 /py/modules/IcePy/Current.cpp | |
parent | removing Slice translation for Glacier (diff) | |
download | ice-c79a843b280cb8cc9559126b76e4f8b8ee3a651c.tar.bz2 ice-c79a843b280cb8cc9559126b76e4f8b8ee3a651c.tar.xz ice-c79a843b280cb8cc9559126b76e4f8b8ee3a651c.zip |
updating Ice::Connection for bidir
Diffstat (limited to 'py/modules/IcePy/Current.cpp')
-rw-r--r-- | py/modules/IcePy/Current.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/py/modules/IcePy/Current.cpp b/py/modules/IcePy/Current.cpp index 8fa0b93add8..3b59c42e278 100644 --- a/py/modules/IcePy/Current.cpp +++ b/py/modules/IcePy/Current.cpp @@ -111,23 +111,7 @@ currentGetter(CurrentObject* self, void* closure) { if(self->adapter == NULL) { - // - // Create an Ice.ObjectAdapter wrapper for IcePy.ObjectAdapter. - // - PyObjectHandle adapterI = createObjectAdapter(self->current->adapter); - if(adapterI.get() == NULL) - { - return NULL; - } - PyObject* wrapper = lookupType("Ice.ObjectAdapterI"); - assert(wrapper != NULL); - PyObjectHandle args = PyTuple_New(1); - if(args.get() == NULL) - { - return NULL; - } - PyTuple_SET_ITEM(args.get(), 0, adapterI.release()); - self->adapter = PyObject_Call(wrapper, args.get(), NULL); + self->adapter = wrapObjectAdapter(self->current->adapter); if(self->adapter == NULL) { return NULL; |