summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2014-12-05 11:52:02 +0100
committerSebastian Koslowski <koslowski@kit.edu>2014-12-05 11:52:02 +0100
commit2c9079afda99349a8a5914c15d55d3d86a50eaca (patch)
tree7640769d6cac4e37e6d6588ed2f6c53a1c331cd7 /grc/python/Generator.py
parenteb40a41ec28d5f8320d9c0abcb7a2aa2602b9872 (diff)
grc: make Generator use gr_message domain
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 78e8031f19..2f9f0854b2 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -164,10 +164,9 @@ class TopBlockGenerator(object):
#list of regular blocks (all blocks minus the special ones)
blocks = filter(lambda b: b not in (imports + parameters), blocks)
#list of connections where each endpoint is enabled
- connections = filter(lambda c: not (c.is_bus() or c.is_msg() or c.is_message()), self._flow_graph.get_enabled_connections())
+ connections = filter(lambda c: not (c.is_bus() or c.is_msg()), self._flow_graph.get_enabled_connections())
connection_templates = self._flow_graph.get_parent().get_connection_templates()
- messages = filter(lambda c: c.is_msg(), self._flow_graph.get_enabled_connections())
- messages2 = filter(lambda c: c.is_message(), self._flow_graph.get_enabled_connections())
+ msgs = filter(lambda c: c.is_msg(), self._flow_graph.get_enabled_connections())
#list of variable names
var_ids = [var.get_id() for var in parameters + variables]
#prepend self.
@@ -193,8 +192,7 @@ class TopBlockGenerator(object):
'blocks': blocks,
'connections': connections,
'connection_templates': connection_templates,
- 'messages': messages,
- 'messages2': messages2,
+ 'msgs': msgs,
'generate_options': self._generate_options,
'var_id2cbs': var_id2cbs,
}