summaryrefslogtreecommitdiff
path: root/grc/base/FlowGraph.py
diff options
context:
space:
mode:
authorJosh Blum2009-08-26 11:23:23 -0700
committerJosh Blum2009-08-26 11:23:23 -0700
commit854bed10dfb61e9f9feab5259a75e809941089ab (patch)
tree76397b4eb8c85b11cb831b6c2e3dd877f48276d4 /grc/base/FlowGraph.py
parent62abad680b43218bbacf03c19d35c068973de4b9 (diff)
downloadgnuradio-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/FlowGraph.py')
-rw-r--r--grc/base/FlowGraph.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/grc/base/FlowGraph.py b/grc/base/FlowGraph.py
index ea489e948..fe493cce1 100644
--- a/grc/base/FlowGraph.py
+++ b/grc/base/FlowGraph.py
@@ -150,14 +150,14 @@ class FlowGraph(Element):
def validate(self):
"""
Validate the flow graph.
- All connections and blocks must be valid.
+ Validate only the blocks.
+ Connections will be validated within the blocks.
"""
Element.validate(self)
- for c in self.get_elements():
- try:
- c.validate()
- assert c.is_valid()
- except AssertionError: self.add_error_message('Element "%s" is not valid.'%c)
+ for c in self.get_blocks():
+ c.validate()
+ if not c.is_valid():
+ self.add_error_message('Element "%s" is not valid.'%c)
##############################################
## Import/Export Methods