diff options
author | Josh Blum | 2009-08-26 11:23:23 -0700 |
---|---|---|
committer | Josh Blum | 2009-08-26 11:23:23 -0700 |
commit | 854bed10dfb61e9f9feab5259a75e809941089ab (patch) | |
tree | 76397b4eb8c85b11cb831b6c2e3dd877f48276d4 /grc/base/Block.py | |
parent | 62abad680b43218bbacf03c19d35c068973de4b9 (diff) | |
download | gnuradio-854bed10dfb61e9f9feab5259a75e809941089ab.tar.gz gnuradio-854bed10dfb61e9f9feab5259a75e809941089ab.tar.bz2 gnuradio-854bed10dfb61e9f9feab5259a75e809941089ab.zip |
Added virtual sink and logic to clone port.
Tweaks to the base validation routines.
Validate twice in the update until rewrite functions are implemented.
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index 349e71f76..491c594cc 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -145,13 +145,12 @@ class Block(Element): Validate the block. All ports and params must be valid. All checks must evaluate to true. + Validate the params, ports, and the connections to this block. """ Element.validate(self) for c in self.get_params() + self.get_ports() + self.get_connections(): - try: - c.validate() - assert c.is_valid() - except AssertionError: + c.validate() + if not c.is_valid(): for msg in c.get_error_messages(): self.add_error_message('>>> %s:\n\t%s'%(c, msg)) |