From 0a73facce3ce4eba23676df5f22f222df319ed87 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Thu, 13 Aug 2009 23:59:06 -0700
Subject: this time commit the file changes

---
 grc/python/Generator.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'grc/python/Generator.py')

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 33be4a726..ed7995716 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -98,7 +98,8 @@ 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 + variables + probes + notebooks), blocks) + probes
 		#list of connections where each endpoint is enabled
-		connections = self._flow_graph.get_enabled_connections()
+		connections = filter(lambda c: not c.is_msg(), self._flow_graph.get_enabled_connections())
+		messages = 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.
@@ -124,6 +125,7 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
 			'parameters': parameters,
 			'blocks': blocks,
 			'connections': connections,
+			'messages': messages,
 			'generate_options': self._generate_options,
 			'var_id2cbs': var_id2cbs,
 		}
-- 
cgit