summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-06-09 02:47:29 +0000
committerBernard Normier <bernard@zeroc.com>2006-06-09 02:47:29 +0000
commit56e56ecfac2de771fd6b4775adbb2dd12fdc72af (patch)
tree412f33256979309733cccc3f63be58052d14fd88 /py/modules/IcePy/Communicator.cpp
parentMinor fix to initialize() (diff)
downloadice-56e56ecfac2de771fd6b4775adbb2dd12fdc72af.tar.bz2
ice-56e56ecfac2de771fd6b4775adbb2dd12fdc72af.tar.xz
ice-56e56ecfac2de771fd6b4775adbb2dd12fdc72af.zip
Fixes for bug #542 and #1015 (default properties)
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r--py/modules/IcePy/Communicator.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp
index 78a087e9cf7..f5c53e4e95e 100644
--- a/py/modules/IcePy/Communicator.cpp
+++ b/py/modules/IcePy/Communicator.cpp
@@ -133,20 +133,15 @@ communicatorInit(CommunicatorObject* self, PyObject* args, PyObject* /*kwds*/)
}
- if(!data.properties)
- {
- data.properties = Ice::getDefaultProperties(seq);
- }
-
+ data.properties = Ice::createProperties(seq, data.properties);
+
//
// Disable collocation optimization, otherwise a Python invocation on
// a collocated servant results in a CollocationOptimizationException
// (because Python uses the blobject API).
//
- seq.push_back("--Ice.Default.CollocationOptimization=0");
-
- seq = data.properties->parseIceCommandLineOptions(seq);
-
+ data.properties->setProperty("Ice.Default.CollocationOptimization", "0");
+
//
// Remaining command line options are passed to the communicator
// as an argument vector in case they contain plugin properties.