예제 #1
0
def domainsorted(request):
    """ exports markdown report for all systems sorted by domain (helper function to call the real function) """

    request_user = request.user

    # call logger
    debug_logger(str(request_user),
                 " SYSTEM_EXPORTER_MARKDOWN_DOMAINSORTED_BEGIN")

    # check variables
    stop_exporter_markdown = check_config(request)

    # leave if variables caused errors
    if stop_exporter_markdown:
        return

    # show immediate message for user (but only if no errors have occured before)
    messages.success(request,
                     'System exporter markdown (sorted by domain) started')

    # call async function
    async_task(
        "dfirtrack_main.exporter.markdown.domainsorted.domainsorted_async",
        request_user,
    )

    return
예제 #2
0
def systemsorted(request):
    """ exports markdown report for all systems (helper function to call the real function) """

    request_user = str(request.user)

    # call logger
    debug_logger(request_user, " SYSTEM_EXPORTER_MARKDOWN_SYSTEMSORTED_BEGIN")

    # check variables
    stop_exporter_markdown = check_config(request)

    # leave importer_api_giraf if variables caused errors
    if stop_exporter_markdown:
        return

    # call async function
    async_task(
        "dfirtrack_main.exporter.markdown.systemsorted.systemsorted_async",
        request_user,
    )

    return