From 201f9d6db49ded25156e0562bc261edb96032b53 Mon Sep 17 00:00:00 2001 From: Garette Emmanuel Date: Wed, 27 Mar 2013 16:41:22 +0100 Subject: [PATCH] remise en fonction des self._cfgimpl_slots --- tiramisu/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()