def get_perms(user_or_group, obj):
 check = ObjectPermissionChecker(user_or_group)
 return check.get_perms(obj)

def get_perms ( user_or_group , obj ) : check = ObjectPermissionChecker ( user_or_group ) return check . get_perms ( obj )
returns permissions for given user/group and object pair .