From f48fd8fa2c2d91d75cc797d3979f7b39bd588b6c Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 19 Jan 2014 00:09:10 +0100 Subject: [PATCH] Changed how dep-messages were placed for the new access hooks. --- src/objects/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/objects.py b/src/objects/objects.py index ca3fbb93bd..cf003a216d 100644 --- a/src/objects/objects.py +++ b/src/objects/objects.py @@ -438,11 +438,9 @@ class Object(TypeClass): # OBS: DEPRECATED! if result: - log_depmsg("at_access_success is deprecated. Use at_access(result,**kwargs) instead.") self.at_access_success(accessing_obj, access_type) return True else: - log_depmsg("at_access_failure is deprecated. Use at_access(result,**kwargs) instead.") self.at_access_failure(accessing_obj, access_type) return False @@ -614,6 +612,7 @@ class Object(TypeClass): of this hook is not used, the lock will still pass regardless of what this hook does (use lockstring/funcs to tweak the lock result). """ + log_depmsg("at_access_success is deprecated. Use at_access(result,**kwargs) instead.") pass def at_access_failure(self, accessing_obj, access_type): @@ -625,6 +624,7 @@ class Object(TypeClass): this hook is not used, the lock will still fail regardless of what this hook does (use lockstring/funcs to tweak the lock result). """ + log_depmsg("at_access_failure is deprecated. Use at_access(result,**kwargs) instead.") pass # hooks called when moving the object