def add_p3p_header(view_func):
 @wraps(view_func)
 def inner(request, *args, **kwargs):
  '\n        Helper function\n        '
  response = view_func(request, *args, **kwargs)
  response['P3P'] = settings.P3P_HEADER
  return response
 return inner

def add_p3p_header ( view_func ) : @ wraps ( view_func ) def inner ( request , * args , ** kwargs ) : response = view_func ( request , * args , ** kwargs ) response [ 'P3P' ] = settings . P3P_HEADER return response return inner
this decorator should only be used with views which may be displayed through the iframe .