[pytango] 08/21: Implement DeviceImpl.is_there_subscriber
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:16:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag v9.2.0a
in repository pytango.
commit 3581a26b0cba3b9fed469c208bbe72726862cf2d
Author: Jose Tiago Coutinho Macara <tiago.coutinho at esrf.fr>
Date: Thu Dec 10 13:15:35 2015 +0100
Implement DeviceImpl.is_there_subscriber
---
src/boost/cpp/server/device_impl.cpp | 2 ++
src/boost/python/device_server.py | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/src/boost/cpp/server/device_impl.cpp b/src/boost/cpp/server/device_impl.cpp
index f6e76dc..eb916fb 100644
--- a/src/boost/cpp/server/device_impl.cpp
+++ b/src/boost/cpp/server/device_impl.cpp
@@ -1451,6 +1451,8 @@ void export_device_impl()
.def("get_attr_min_poll_period",
&Tango::DeviceImpl::get_attr_min_poll_period,
return_internal_reference<>())
+ .def("is_there_subscriber",
+ &Tango::DeviceImpl::is_there_subscriber)
;
implicitly_convertible<auto_ptr<DeviceImplWrap>, auto_ptr<Tango::DeviceImpl> >();
diff --git a/src/boost/python/device_server.py b/src/boost/python/device_server.py
index 4b46e83..cabeb9a 100644
--- a/src/boost/python/device_server.py
+++ b/src/boost/python/device_server.py
@@ -1185,6 +1185,25 @@ def __doc_DeviceImpl():
New in PyTango 7.2.1
""" )
+
+ document_method("is_there_subscriber", """
+ is_there_subscriber(self, att_name, event_type) -> bool
+
+ Check if there is subscriber(s) listening for the event.
+
+ This method returns a boolean set to true if there are some
+ subscriber(s) listening on the event specified by the two method
+ arguments. Be aware that there is some delay (up to 600 sec)
+ between this method returning false and the last subscriber
+ unsubscription or crash...
+
+ The device interface change event is not supported by this method.
+
+ Parameters :
+ - att_name: (str) the attribute name
+ - event_type (EventType): the event type
+ Return : True if there is at least one listener or False otherwise
+ """ )
def __doc_extra_DeviceImpl(cls):
def document_method(method_name, desc, append=True):
--
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