Removed .typeclass and .dbobj references in codebase.

This commit is contained in:
Griatch 2015-01-02 20:48:34 +01:00
parent 1130dc5757
commit 70da53569d
23 changed files with 60 additions and 127 deletions

View file

@ -125,7 +125,7 @@ def self(accessing_obj, accessed_obj, *args, **kwargs):
This can be used to lock specifically only to
the same object that the lock is defined on.
"""
return accessing_obj.typeclass == accessed_obj.typeclass
return accessing_obj == accessed_obj
def perm(accessing_obj, accessed_obj, *args, **kwargs):