From 7f755e0ef81ac0ba2a2db8918abafa52a0065216 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 28 Aug 2013 22:05:44 +0200 Subject: [PATCH] setpermissive should have opt has option --- tiramisu/setting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tiramisu/setting.py b/tiramisu/setting.py index d6ee8ac..f8c1d37 100644 --- a/tiramisu/setting.py +++ b/tiramisu/setting.py @@ -399,7 +399,9 @@ class Settings(object): "").format(opt_or_descr._name, str(props)), props) - def setpermissive(self, permissive, path=None): + def setpermissive(self, permissive, opt=None, path=None): + if opt is not None and path is None: + path = self._get_opt_path(opt) if not isinstance(permissive, tuple): raise TypeError(_('permissive must be a tuple')) self._p_.setpermissive(path, permissive)