def make_acl(scheme, credential, read=False, write=False, create=False, delete=False, admin=False, all=False):
 if all:
  permissions = Permissions.ALL
 else:
  permissions = 0
  if read:
   permissions |= Permissions.READ
  if write:
   permissions |= Permissions.WRITE
  if create:
   permissions |= Permissions.CREATE
  if delete:
   permissions |= Permissions.DELETE
  if admin:
   permissions |= Permissions.ADMIN
 return ACL(permissions, Id(scheme, credential))

def make_acl ( scheme , credential , read = False , write = False , create = False , delete = False , admin = False , all = False ) : if all : permissions = Permissions . ALL else : permissions = 0 if read : permissions |= Permissions . READ if write : permissions |= Permissions . WRITE if create : permissions |= Permissions . CREATE if delete : permissions |= Permissions . DELETE if admin : permissions |= Permissions . ADMIN return ACL ( permissions , Id ( scheme , credential ) )
given a scheme and credential .