[pytango] 426/483: Fix: long objects are DevEncoded instead of DevLong64

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:08 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 e44430434a44a2db3deb661f30ac8fc8e6c5679c
Author: coutinho <coutinho at esrf.fr>
Date:   Mon Dec 15 14:15:15 2014 +0100

    Fix: long objects are DevEncoded instead of DevLong64
---
 src/boost/python/server.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/boost/python/server.py b/src/boost/python/server.py
index 47af7d4..6458061 100644
--- a/src/boost/python/server.py
+++ b/src/boost/python/server.py
@@ -45,7 +45,7 @@ LatestDeviceImpl = get_tango_device_classes()[-1]
 def __build_to_tango_type():
     ret = \
     {
-        int         : CmdArgType.DevLong,
+        int         : CmdArgType.DevLong64,
         str         : CmdArgType.DevString,
         bool        : CmdArgType.DevBoolean,
         bytearray   : CmdArgType.DevEncoded,
@@ -79,6 +79,12 @@ def __build_to_tango_type():
         'state'     : CmdArgType.DevState,
     }
 
+    try:
+        ret[long] = ret[int]
+    except NameError:
+        pass
+
+
     for key in dir(CmdArgType):
         if key.startswith("Dev"):
             value = getattr(CmdArgType, key)

-- 
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