diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-04-05 22:03:43 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-05-27 21:58:27 +0200 |
commit | 1937f756fd4027ace86316fc6fb1433cd832e6eb (patch) | |
tree | f4dfcf25ae5033db66484498c1864eb002c0aed3 /grc/core/utils | |
parent | cc02c4b22a2e17eddfc05863a9f17fb9a5778361 (diff) |
grc: separate core and OOT block trees via the category of each block
Each block get assigned a module based on the root of its category.
The category is set via a block_tree.xml or else from its <category> tag.
The category root is only interpreted as module name if it is in square brackets.
Else the default module 'Others' is used.
Diffstat (limited to 'grc/core/utils')
-rw-r--r-- | grc/core/utils/odict.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/core/utils/odict.py b/grc/core/utils/odict.py index 20970e947c..85927e869f 100644 --- a/grc/core/utils/odict.py +++ b/grc/core/utils/odict.py @@ -109,3 +109,7 @@ class odict(DictMixin): if isinstance(obj, list): return obj return [obj] + + def clear(self): + self._data.clear() + del self._keys[:]
\ No newline at end of file |