setpermissive should have opt has option

This commit is contained in:
Emmanuel Garette 2013-08-28 22:05:44 +02:00
parent 8c24903dfb
commit 7f755e0ef8
1 changed files with 3 additions and 1 deletions

View File

@ -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)