diff --git a/tiramisu/config.py b/tiramisu/config.py index 5849498..d12cc41 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -37,6 +37,7 @@ class Config(object): '_cfgimpl_parent', '_cfgimpl_warnings', '_cfgimpl_permissive', '_cfgimpl_context', '_cfgimpl_settings', '_cfgimpl_values', '_cfgimpl_slots', '_cfgimpl_build_all_paths') + def __init__(self, descr, parent=None, context=None, valid_opt_names=True): """ Configuration option management master class @@ -70,9 +71,9 @@ class Config(object): self._cfgimpl_warnings = [] if valid_opt_names: # some api members shall not be used as option's names ! - #methods = getmembers(self, ismethod) - self._cfgimpl_slots = [] #[key for key, value in methods - #if not key.startswith("_")] + methods = getmembers(self, ismethod) + self._cfgimpl_slots = [key for key, value in methods + if not key.startswith("_")] else: self._cfgimpl_slots = [] self._cfgimpl_build()