diff options
author | Josh Blum <josh@joshknows.com> | 2009-08-26 13:29:28 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2009-08-26 13:29:28 -0700 |
commit | dc9e9db16047ec589a7b0488fac04c5bb682903c (patch) | |
tree | 1a97913e4f1ab6acd0627757f034ee6c9eb4672f /grc/gui | |
parent | 854bed10dfb61e9f9feab5259a75e809941089ab (diff) |
added rewrite methods to element to separate from validation logic
Diffstat (limited to 'grc/gui')
-rw-r--r-- | grc/gui/FlowGraph.py | 6 |
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() |