def principals_allowed_by_permission(context, permission):
 reg = get_current_registry()
 policy = reg.queryUtility(IAuthorizationPolicy)
 if (policy is None):
  return [Everyone]
 return policy.principals_allowed_by_permission(context, permission)

def principals_allowed_by_permission ( context , permission ) : reg = get_current_registry ( ) policy = reg . queryUtility ( IAuthorizationPolicy ) if ( policy is None ) : return [ Everyone ] return policy . principals_allowed_by_permission ( context , permission )
provided a context .