def sensitive_post_parameters(*parameters):
 def decorator(view):
  @functools.wraps(view)
  def sensitive_post_parameters_wrapper(request, *args, **kwargs):
   if parameters:
    request.sensitive_post_parameters = parameters
   else:
    request.sensitive_post_parameters = '__ALL__'
   return view(request, *args, **kwargs)
  return sensitive_post_parameters_wrapper
 return decorator

def sensitive_post_parameters ( * parameters ) : def decorator ( view ) : @ functools . wraps ( view ) def sensitive_post_parameters_wrapper ( request , * args , ** kwargs ) : if parameters : request . sensitive_post_parameters = parameters else : request . sensitive_post_parameters = '__ALL__' return view ( request , * args , ** kwargs ) return sensitive_post_parameters_wrapper return decorator
indicates which post parameters used in the decorated view are sensitive .