def give_permission_to(permission, obj_or_class, receiver, giver=None, can_delegate=False):
    
    obj_permission =\
        ObjectPermission.objects.get_or_create_for_object_or_class(
            permission, obj_or_class)[0]
        
    return obj_permission.give_to(
        receiver, giver=giver, can_delegate=can_delegate)
Give receiver the permission C{permission} over the object or class
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/shortcuts.py/give_permission_to