docstring setpermissive

This commit is contained in:
gwen 2013-08-29 09:32:32 +02:00
parent 8aa4260404
commit 5efc62af09

View file

@ -400,6 +400,15 @@ class Settings(object):
str(props)), props) str(props)), props)
def setpermissive(self, permissive, opt=None, path=None): def setpermissive(self, permissive, opt=None, path=None):
"""
enables us to put the permissives in the storage
: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
instead of passing a :class:`tiramisu.option.Option()` object.
"""
if opt is not None and path is None: if opt is not None and path is None:
path = self._get_opt_path(opt) path = self._get_opt_path(opt)
if not isinstance(permissive, tuple): if not isinstance(permissive, tuple):