[pytango] 434/483: Fix when register/unregister object is called from a living server

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 954d74a19bd8e79a9380caef0316de2636e13fce
Author: coutinho <coutinho at esrf.fr>
Date:   Tue Dec 16 19:03:26 2014 +0100

    Fix when register/unregister object is called from a living server
---
 src/boost/python/server.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/boost/python/server.py b/src/boost/python/server.py
index b3659af..abb46d6 100644
--- a/src/boost/python/server.py
+++ b/src/boost/python/server.py
@@ -1621,7 +1621,8 @@ class Server:
     def unregister_object(self, name):
         del self.__objects[name.lower()]
         if self._phase > Server.Phase1:
-            util.delete_device(name)
+            import PyTango
+            PyTango.Util.instance().delete_device(name)
 
     def register_object(self, obj, name, tango_class_name=None,
                         member_filter=None):
@@ -1651,7 +1652,8 @@ class Server:
                                                tango_class_name=class_name)
         self.__objects[full_name.lower()] = tango_object
         if self._phase > Server.Phase1:
-            util = self.tango_util
+            import PyTango
+            util = PyTango.Util.instance()
             util.create_device(class_name, name)
         return tango_object
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list