Further fixes to the tag lockfunc as well as handling of the changes to at_look to not include calling execute_cmd(look) but to use the at_look hook. This should finally resolve #889.
This commit is contained in:
parent
03d415beb1
commit
c1e4b1fe07
3 changed files with 16 additions and 6 deletions
|
|
@ -474,7 +474,9 @@ def tag(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
"""
|
||||
if hasattr(accessing_obj, "obj"):
|
||||
accessing_obj = accessing_obj.obj
|
||||
return accessing_obj.tags.get(*args)
|
||||
tagkey = args[0] if args else None
|
||||
category = args[1] if len(args) > 1 else None
|
||||
return accessing_obj.tags.get(tagkey, category=category)
|
||||
|
||||
def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue