From 53dabcddefa202facfd0825fd2171f840a1a47c3 Mon Sep 17 00:00:00 2001 From: Justin R. Cutler Date: Thu, 31 May 2012 17:02:05 -0700 Subject: grc: restore virtual ports in grc --- grc/python/Port.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'grc/python') diff --git a/grc/python/Port.py b/grc/python/Port.py index d0ef51b48..9f8b50d05 100644 --- a/grc/python/Port.py +++ b/grc/python/Port.py @@ -139,6 +139,10 @@ class Port(_Port, _GUIPort): self._type = '' self._vlen = '' + def resolve_virtual_source(self): + if self.get_parent().is_virtual_sink(): return _get_source_from_virtual_sink_port(self) + if self.get_parent().is_virtual_source(): return _get_source_from_virtual_source_port(self) + def resolve_empty_type(self): if self.is_sink(): try: -- cgit