diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-09-05 10:08:01 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-09-05 10:08:01 +0200 |
commit | 12caf6bc9e1e2d0c85220bf4dbbf51c8b2abd450 (patch) | |
tree | 6626b37c032186646ce169f8847be1909844ed5f /py/modules/IcePy/PropertiesAdmin.cpp | |
parent | python fixes (diff) | |
download | ice-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.cpp | 2 |
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()) { |