summaryrefslogtreecommitdiff
path: root/grc/python/Connection.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2014-12-05 10:24:08 +0100
committerSebastian Koslowski <koslowski@kit.edu>2014-12-05 10:24:08 +0100
commiteb40a41ec28d5f8320d9c0abcb7a2aa2602b9872 (patch)
tree2a5b96dec2b1ffa3f6f04c7c15ed96df1d24418c /grc/python/Connection.py
parent9372ec7daf7856de7c0e1fe782836a5c722c1473 (diff)
grc: add gr_message domain
Diffstat (limited to 'grc/python/Connection.py')
-rw-r--r--grc/python/Connection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/Connection.py b/grc/python/Connection.py
index dff98c66a4..86ec08cb53 100644
--- a/grc/python/Connection.py
+++ b/grc/python/Connection.py
@@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
import Constants
-from .. base.Element import Element
+from .. base.Constants import GR_MESSAGE_DOMAIN
from .. base.Connection import Connection as _Connection
from .. gui.Connection import Connection as _GUIConnection
@@ -32,7 +32,7 @@ class Connection(_Connection, _GUIConnection):
return self.get_source().get_type() == self.get_sink().get_type() == 'msg'
def is_message(self):
- return self.get_source().get_type() == self.get_sink().get_type() == 'message'
+ return self.get_source().get_domain() == self.get_sink().get_domain() == GR_MESSAGE_DOMAIN
def is_bus(self):
return self.get_source().get_type() == self.get_sink().get_type() == 'bus'