diff options
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index 491c594cc..d2266e783 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -140,6 +140,14 @@ class Block(Element): """ self.get_param('_enabled').set_value(str(enabled)) + def rewrite(self): + """ + Rewrite critical structures. + Call rewrite on all sub elements. + """ + Element.rewrite(self) + for elem in self.get_ports() + self.get_params(): elem.rewrite() + def validate(self): """ Validate the block. |