(request,option=None)
Generate the Backdoor listing page.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :param option: Action to take.
    :type option: str of either 'jtlist', 'jtdelete', 'csv', or 'inline'.
    :returns: :class:`django.http.HttpResponse`
Generate the Backdoor listing page.
Generate the Backdoor listing page .
def backdoors_listing(request,option=None):
    """
    Generate the Backdoor listing page.

    :param request: Django request.
    :type request: :class:`django.http.HttpRequest`
    :param option: Action to take.
    :type option: str of either 'jtlist', 'jtdelete', 'csv', or 'inline'.
    :returns: :class:`django.http.HttpResponse`
    """

    request.user._setup()
    user = request.user
    if user.has_access_to(BackdoorACL.READ):
        if option == "csv":
            return generate_backdoor_csv(request)
        elif option== "jtdelete" and not user.has_access_to(BackdoorACL.DELETE):
            result = {'sucess':False,
                      'message':'User does not have permission to delete Backdoor.'}
            return HttpResponse(json.dumps(result,
                                           default=json_handler),
                                content_type="application/json")

        return generate_backdoor_jtable(request, option)
    else:
        return render(request, "error.html",
                                  {'error': 'User does not have permission to view backdoor listing.'})
def backdoors_listing ( request , option = None ) : request . user . _setup ( ) user = request . user if user . has_access_to ( BackdoorACL . READ ) : if option == "csv" : return generate_backdoor_csv ( request ) elif option == "jtdelete" and not user . has_access_to ( BackdoorACL . DELETE ) : result = { 'sucess' : False , 'message' : 'User does not have permission to delete Backdoor.' } return HttpResponse ( json . dumps ( result , default = json_handler ) , content_type = "application/json" ) return generate_backdoor_jtable ( request , option ) else : return render ( request , "error.html" , { 'error' : 'User does not have permission to view backdoor listing.' } )