(request, poll_id, page=1, mult=10)
return HttpResponse(json.dumps(data), content_type="application/json")
Given a particular TAXII poll, get a preview of the content that is
    available for import from that poll's data. Should be an AJAX GET.

    :param request: Django request object (Required)
    :type request: :class:`django.http.HttpRequest`
    :param poll_id: The ID of the desired TAXII poll
    :param poll_id: string
    :param page: The desired page number
    :type page: int
    :param mult: The desired number of blocks/page
    :type mult: int
    :returns: :class:`django.http.HttpResponse`
Given a particular TAXII poll, get a preview of the content that is
    available for import from that poll's data. Should be an AJAX GET.
Given a particular TAXII poll get a preview of the content that is available for import from that poll s data . Should be an AJAX GET .
def get_import_preview(request, poll_id, page=1, mult=10):
    """
    Given a particular TAXII poll, get a preview of the content that is
    available for import from that poll's data. Should be an AJAX GET.

    :param request: Django request object (Required)
    :type request: :class:`django.http.HttpRequest`
    :param poll_id: The ID of the desired TAXII poll
    :param poll_id: string
    :param page: The desired page number
    :type page: int
    :param mult: The desired number of blocks/page
    :type mult: int
    :returns: :class:`django.http.HttpResponse`
    """
    user = request.user.username
    if request.body:
        post = json.loads(request.body)
        handlers.select_blocks(post.get('checked', []),
                               post.get('unchecked', []))
    content = handlers.generate_import_preview(poll_id, user, page, mult)
    data = {'success': True}
    data['html'] = render_to_string("taxii_agent_preview.html",
                                    {'poll': content})
    return HttpResponse(json.dumps(data), content_type="application/json")
def get_import_preview ( request , poll_id , page = 1 , mult = 10 ) : user = request . user . username if request . body : post = json . loads ( request . body ) handlers . select_blocks ( post . get ( 'checked' , [ ] ) , post . get ( 'unchecked' , [ ] ) ) content = handlers . generate_import_preview ( poll_id , user , page , mult ) data = { 'success' : True } data [ 'html' ] = render_to_string ( "taxii_agent_preview.html" , { 'poll' : content } ) return HttpResponse ( json . dumps ( data ) , content_type = "application/json" )