remise en fonction des self._cfgimpl_slots
This commit is contained in:
parent
d00153787d
commit
201f9d6db4
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue