[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: grc: disable port type caching on in
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: grc: disable port type caching on init |
Date: |
Thu, 16 Oct 2014 16:14:02 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 4fd40a05f3c4da1e8434eef835d766fe9084d0ec
Author: Sebastian Koslowski <address@hidden>
Date: Tue Oct 7 17:50:23 2014 +0200
grc: disable port type caching on init
---
grc/base/Port.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/grc/base/Port.py b/grc/base/Port.py
index 761369d..be32d15 100644
--- a/grc/base/Port.py
+++ b/grc/base/Port.py
@@ -38,7 +38,7 @@ class Port(Element):
self._type = n['type']
self._hide = n.find('hide') or ''
self._dir = dir
- self._type_evaluated = '' # updated on rewrite()
+ self._type_evaluated = None # updated on rewrite()
self._hide_evaluated = False # updated on rewrite()
def validate(self):
@@ -82,7 +82,9 @@ class Port(Element):
def get_key(self): return self._key
def is_sink(self): return self._dir == 'sink'
def is_source(self): return self._dir == 'source'
- def get_type(self): return self._type_evaluated
+ def get_type(self):
+ return self.get_parent().resolve_dependencies(self._type) \
+ if self._type_evaluated is None else self._type_evaluated
def get_hide(self): return self._hide_evaluated
def get_connections(self):