[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/08: grc: show detected virtual connectio
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/08: grc: show detected virtual connection loops as errors in GUI" |
Date: |
Thu, 26 Jan 2017 14:46:37 +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 6a3fb6e1432ec3e0e68f11572a62e112436af1dc
Author: Sebastian Koslowski <address@hidden>
Date: Wed Jan 18 21:29:48 2017 +0100
grc: show detected virtual connection loops as errors in GUI"
---
grc/core/Port.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/grc/core/Port.py b/grc/core/Port.py
index da1e016..f740a69 100644
--- a/grc/core/Port.py
+++ b/grc/core/Port.py
@@ -184,7 +184,6 @@ class Port(Element):
return not self._n['type'] or not
self.get_parent().resolve_dependencies(self._n['type'])
def validate(self):
- Element.validate(self)
if self.get_type() not in self.get_types():
self.add_error_message('Type "{0}" is not a possible
type.'.format(self.get_type()))
platform = self.get_parent().get_parent().get_parent()
@@ -203,10 +202,10 @@ class Port(Element):
"""
Handle the port cloning for virtual blocks.
"""
+ del self._error_messages[:]
if self.is_type_empty():
self.resolve_empty_type()
- Element.rewrite(self)
hide =
self.get_parent().resolve_dependencies(self._hide).strip().lower()
self._hide_evaluated = False if hide in ('false', 'off', '0') else
bool(hide)
@@ -227,6 +226,8 @@ class Port(Element):
def find_port(finder):
try:
return next((p for p in finder(self) if not
p.is_type_empty()), None)
+ except LoopError as error:
+ self.add_error_message(str(error))
except (StopIteration, Exception) as error:
pass
- [Commit-gnuradio] [gnuradio] branch maint updated (509330c -> 034a7d4), git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 08/08: Merge remote-tracking branch 'skoslowski/fix_virtual_connection_1166' into maint, git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 07/08: Use -undefined dynamic_lookup linkage for python on macos in newmod, git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 04/08: gr-qtgui: syntax error in time_sink grc template solved, git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 03/08: grc: show detected virtual connection loops as errors in GUI",
git <=
- [Commit-gnuradio] [gnuradio] 01/08: grc: allow for multiple sources over virtual connections (#1166), git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 05/08: Merge remote-tracking branch 'kartikp/time_sink_grc_syntax' into maint, git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 02/08: grc: fix port type resolution in pad sink/source (when using Type=Wildcard), git, 2017/01/26
- [Commit-gnuradio] [gnuradio] 06/08: Use -undefined dynamic_lookup linkage for python on macos, git, 2017/01/26