diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2012-11-28 15:15:58 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2012-11-28 15:19:01 -0800 |
commit | 7fc857a18cdc47f333db56cfedd2a4ed1a8432a9 (patch) | |
tree | ba1a6bf29ac4dbaae6ae68fd00067fd3ca53b44a /grc/python/Generator.py | |
parent | 12e279660e7300f42cbe993f89c8ad5ef6a3ea0a (diff) |
core: adding msg_connect, updating msg interface, adding symbolic block names
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r-- | grc/python/Generator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py index f8490227a7..912ce13752 100644 --- a/grc/python/Generator.py +++ b/grc/python/Generator.py @@ -122,8 +122,9 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''') #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_msg(), self._flow_graph.get_enabled_connections()) + connections = filter(lambda c: not (c.is_msg() or c.is_message()), self._flow_graph.get_enabled_connections()) 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()) #list of variable names var_ids = [var.get_id() for var in parameters + variables] #prepend self. @@ -148,6 +149,7 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''') 'blocks': blocks, 'connections': connections, 'messages': messages, + 'messages2': messages2, 'generate_options': self._generate_options, 'var_id2cbs': var_id2cbs, } |