summaryrefslogtreecommitdiff
path: root/grc/base
diff options
context:
space:
mode:
authorJohnathan Corgan2009-09-18 22:27:38 -0700
committerJohnathan Corgan2009-09-18 22:27:38 -0700
commit4cadf11430e76cd79aa7df20b76c0ced6779248b (patch)
tree25d23752cee01651851251254d1b70f10fb66c5e /grc/base
parentcc5657e25f8e8f364cb6553e9eb8289cc0aca027 (diff)
parent54f913876e5d92fa66f4bcf3a1c773a503e907f8 (diff)
downloadgnuradio-4cadf11430e76cd79aa7df20b76c0ced6779248b.tar.gz
gnuradio-4cadf11430e76cd79aa7df20b76c0ced6779248b.tar.bz2
gnuradio-4cadf11430e76cd79aa7df20b76c0ced6779248b.zip
Merge branch 'grc' of http://gnuradio.org/git/jblum into master
Diffstat (limited to 'grc/base')
-rw-r--r--grc/base/Element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/base/Element.py b/grc/base/Element.py
index e77e7ce08..a57090f3b 100644
--- a/grc/base/Element.py
+++ b/grc/base/Element.py
@@ -50,11 +50,12 @@ class Element(object):
def get_error_messages(self):
"""
Get the list of error messages from this element and all of its children.
+ Do not include the error messages from disabled children.
Cleverly indent the children error messages for printing purposes.
@return a list of error message strings
"""
error_messages = list(self._error_messages) #make a copy
- for child in self.get_children():
+ for child in filter(lambda c: c.get_enabled(), self.get_children()):
for msg in child.get_error_messages():
error_messages.append("%s:\n\t%s"%(child, msg.replace("\n", "\n\t")))
return error_messages