_calc_requirement is a set, not a tuple
This commit is contained in:
parent
c2b16d2605
commit
196d270cc9
|
@ -669,6 +669,8 @@ def mandatory_warnings(config):
|
||||||
include_groups=True):
|
include_groups=True):
|
||||||
try:
|
try:
|
||||||
config._getattr(path, force_properties=frozenset(('mandatory',)))
|
config._getattr(path, force_properties=frozenset(('mandatory',)))
|
||||||
|
# XXX raise Exception("ca passe ici")
|
||||||
|
# XXX depuis l'exterieur on donne un paht maintenant ! perturbant !
|
||||||
except PropertiesOptionError, err:
|
except PropertiesOptionError, err:
|
||||||
if err.proptype == ['mandatory']:
|
if err.proptype == ['mandatory']:
|
||||||
yield path
|
yield path
|
||||||
|
|
|
@ -925,9 +925,9 @@ class OptionDescription(BaseInformation):
|
||||||
def validate_requires_arg(requires, name):
|
def validate_requires_arg(requires, name):
|
||||||
"""check malformed requirements
|
"""check malformed requirements
|
||||||
and tranform dict to internal tuple
|
and tranform dict to internal tuple
|
||||||
|
|
||||||
:param requires: have a look at the
|
:param requires: have a look at the
|
||||||
:meth:`tiramisu.setting.Settings.apply_requires` method to
|
:meth:`tiramisu.setting.Settings.apply_requires` method to
|
||||||
know more about
|
know more about
|
||||||
the description of the requires dictionnary
|
the description of the requires dictionnary
|
||||||
"""
|
"""
|
||||||
|
@ -1009,4 +1009,4 @@ def validate_requires_arg(requires, name):
|
||||||
require[5])
|
require[5])
|
||||||
ret_action.append(req)
|
ret_action.append(req)
|
||||||
ret.append(tuple(ret_action))
|
ret.append(tuple(ret_action))
|
||||||
return tuple(config_action.keys()), tuple(ret)
|
return frozenset(config_action.keys()), tuple(ret)
|
||||||
|
|
Loading…
Reference in New Issue