requirements: calculate all requirements for an option

This commit is contained in:
2013-09-02 17:13:07 +02:00
parent 52a6705fbf
commit 4636a977cc
3 changed files with 35 additions and 8 deletions

View File

@ -402,11 +402,11 @@ class Settings(object):
def setpermissive(self, permissive, opt=None, path=None):
"""
enables us to put the permissives in the storage
:param path: the option's path
:param path: the option's path
:param type: str
:param opt: if an option object is set, the path is extracted.
it is better (faster) to set the path parameter
:param opt: if an option object is set, the path is extracted.
it is better (faster) to set the path parameter
instead of passing a :class:`tiramisu.option.Option()` object.
"""
if opt is not None and path is None:
@ -527,7 +527,7 @@ class Settings(object):
calc_properties.add(action)
# the calculation cannot be carried out
break
return calc_properties
return calc_properties
def _get_opt_path(self, opt):
return self.context().cfgimpl_get_description().impl_get_path_by_opt(opt)