remise en fonction des self._cfgimpl_slots

This commit is contained in:
Garette Emmanuel 2013-03-27 16:41:22 +01:00
parent d00153787d
commit 201f9d6db4

View file

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