[pytango] 281/483: added ping to green mode

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:50 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 580a358e33142f8edd712ca5c6eed2c894358109
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Tue Sep 24 12:42:13 2013 +0000

    added ping to green mode
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@23762 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/cpp/device_proxy.cpp   | 2 +-
 src/boost/python/device_proxy.py | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/boost/cpp/device_proxy.cpp b/src/boost/cpp/device_proxy.cpp
index 8ab73e3..eae6b5b 100644
--- a/src/boost/cpp/device_proxy.cpp
+++ b/src/boost/cpp/device_proxy.cpp
@@ -445,7 +445,7 @@ void export_device_proxy()
         .def("get_tango_lib_version", &Tango::DeviceProxy::get_tango_lib_version,
             ( arg_("self") ) )        
 
-        .def("ping", &PyDeviceProxy::ping,
+        .def("_ping", &PyDeviceProxy::ping,
             ( arg_("self") ) )
             
 
diff --git a/src/boost/python/device_proxy.py b/src/boost/python/device_proxy.py
index 2afad96..82ddd08 100644
--- a/src/boost/python/device_proxy.py
+++ b/src/boost/python/device_proxy.py
@@ -983,6 +983,9 @@ def __DeviceProxy__write_attribute(self, *args, **kwargs):
 def __DeviceProxy__write_attributes(self, *args, **kwargs):
     return self._write_attributes(*args, **kwargs)
 
+def __DeviceProxy__ping(self, *args, **kwargs):
+    return self._ping(*args, **kwargs)
+
 def __init_DeviceProxy():
     DeviceProxy.__init_orig__ = DeviceProxy.__init__
     DeviceProxy.__init__ = __DeviceProxy__init__
@@ -1013,6 +1016,8 @@ def __init_DeviceProxy():
     DeviceProxy.write_attribute = green(__DeviceProxy__write_attribute)
     DeviceProxy.write_attributes = green(__DeviceProxy__write_attributes)
 
+    DeviceProxy.ping = green(__DeviceProxy__ping)   
+
     DeviceProxy.get_property = __DeviceProxy__get_property
     DeviceProxy.put_property = __DeviceProxy__put_property
     DeviceProxy.delete_property = __DeviceProxy__delete_property

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