setpermissive should have opt has option
This commit is contained in:
parent
8c24903dfb
commit
7f755e0ef8
1 changed files with 3 additions and 1 deletions
|
@ -399,7 +399,9 @@ class Settings(object):
|
||||||
"").format(opt_or_descr._name,
|
"").format(opt_or_descr._name,
|
||||||
str(props)), props)
|
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):
|
if not isinstance(permissive, tuple):
|
||||||
raise TypeError(_('permissive must be a tuple'))
|
raise TypeError(_('permissive must be a tuple'))
|
||||||
self._p_.setpermissive(path, permissive)
|
self._p_.setpermissive(path, permissive)
|
||||||
|
|
Loading…
Reference in a new issue