summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/PropertiesAdmin.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-09-05 10:08:01 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-09-05 10:08:01 +0200
commit12caf6bc9e1e2d0c85220bf4dbbf51c8b2abd450 (patch)
tree6626b37c032186646ce169f8847be1909844ed5f /py/modules/IcePy/PropertiesAdmin.cpp
parentpython fixes (diff)
downloadice-12caf6bc9e1e2d0c85220bf4dbbf51c8b2abd450.tar.bz2
ice-12caf6bc9e1e2d0c85220bf4dbbf51c8b2abd450.tar.xz
ice-12caf6bc9e1e2d0c85220bf4dbbf51c8b2abd450.zip
Added Python properties demo, fixed bugs
Diffstat (limited to 'py/modules/IcePy/PropertiesAdmin.cpp')
-rw-r--r--py/modules/IcePy/PropertiesAdmin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/PropertiesAdmin.cpp b/py/modules/IcePy/PropertiesAdmin.cpp
index ca87b04261b..4b308288ec5 100644
--- a/py/modules/IcePy/PropertiesAdmin.cpp
+++ b/py/modules/IcePy/PropertiesAdmin.cpp
@@ -69,6 +69,8 @@ IcePy::UpdateCallbackWrapper::getObject() const
void
IcePy::UpdateCallbackWrapper::updated(const Ice::PropertyDict& dict)
{
+ AdoptThread adoptThread; // Ensure the current thread is able to call into Python.
+
PyObjectHandle result = PyDict_New();
if(result.get())
{