summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2009-08-26 13:29:28 -0700
committerJosh Blum <josh@joshknows.com>2009-08-26 13:29:28 -0700
commitdc9e9db16047ec589a7b0488fac04c5bb682903c (patch)
tree1a97913e4f1ab6acd0627757f034ee6c9eb4672f /grc/gui
parent854bed10dfb61e9f9feab5259a75e809941089ab (diff)
added rewrite methods to element to separate from validation logic
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/FlowGraph.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 007bb622c5..5e645be727 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -291,12 +291,10 @@ class FlowGraph(Element):
def update(self):
"""
+ Do a global rewrite and validate.
Call update on all elements.
- Validate twice:
- 1) elements call special rewrite rules that may break validation
- 2) elements should come up with the same results, validation can pass
"""
- self.validate()
+ self.rewrite()
self.validate()
for element in self.get_elements(): element.update()