From e68643bb7c7134c88f38a26b22830a4897590f1e Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Wed, 3 Dec 2014 14:16:23 +0100
Subject: grc: use domain connection templates in Generator

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

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

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 24d943d28d..78e8031f19 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -165,6 +165,7 @@ class TopBlockGenerator(object):
         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())
+        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())
         #list of variable names
@@ -191,6 +192,7 @@ class TopBlockGenerator(object):
             'monitors': monitors,
             'blocks': blocks,
             'connections': connections,
+            'connection_templates': connection_templates,
             'messages': messages,
             'messages2': messages2,
             'generate_options': self._generate_options,
-- 
cgit v1.2.3