Pass category from objtag lockfunc. Resolve #2149
This commit is contained in:
parent
a848960819
commit
a84843d314
1 changed files with 3 additions and 1 deletions
|
|
@ -539,7 +539,9 @@ def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
||||||
Only true if accessed_obj has the specified tag and optional
|
Only true if accessed_obj has the specified tag and optional
|
||||||
category.
|
category.
|
||||||
"""
|
"""
|
||||||
return bool(accessed_obj.tags.get(*args))
|
tagkey = args[0] if args else None
|
||||||
|
category = args[1] if len(args) > 1 else None
|
||||||
|
return bool(accessed_obj.tags.get(tagkey, category=category))
|
||||||
|
|
||||||
|
|
||||||
def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue