diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-11 13:50:06 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-11 13:50:06 +0000 |
commit | 727cb56e429874d86fe055dd721c154ff0086acf (patch) | |
tree | 997105e7adf1f39a16bf627b61ca42279db54e23 /py/modules/IcePy/Communicator.cpp | |
parent | fix incorrect pathname in command line (diff) | |
download | ice-727cb56e429874d86fe055dd721c154ff0086acf.tar.bz2 ice-727cb56e429874d86fe055dd721c154ff0086acf.tar.xz ice-727cb56e429874d86fe055dd721c154ff0086acf.zip |
Deprecated setDefaultContext/getDefaultContext
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r-- | py/modules/IcePy/Communicator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp index 36441bc82a9..47d048891c8 100644 --- a/py/modules/IcePy/Communicator.cpp +++ b/py/modules/IcePy/Communicator.cpp @@ -714,6 +714,8 @@ extern "C" static PyObject* communicatorSetDefaultContext(CommunicatorObject* self, PyObject* args) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("setDefaultContext has been deprecated, use per-proxy contexts or implicit contexts (if applicable) instead.")); + PyObject* dict; if(!PyArg_ParseTuple(args, STRCAST("O!"), &PyDict_Type, &dict)) { @@ -747,6 +749,8 @@ extern "C" static PyObject* communicatorGetDefaultContext(CommunicatorObject* self) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("getDefaultContext has been deprecated, use per-proxy contexts or implicit contexts (if applicable) instead.")); + Ice::Context ctx; try { |