def __get_resource_permission(key):
    p = resource_permission.objects.get(key=key)
    readable = p.readable
    writeable = p.writeable
    modifiable = p.modifiable
    token = p.token
    return (readable, writeable, modifiable, token)
def __get_resource_permission(key):
    p = resource_permission.objects.get(key=key)
    readable = p.readable
    writeable = p.writeable
    modifiable = p.modifiable
    token = p.token
    return (readable, writeable, modifiable, token)