Exemplo n.º 1
0
def archive_call(call_request, call_report):
    """
    Store a completed call request in the database.

    :param call_request: call request to store
    :type call_request: pulp.server.dispatch.call.CallRequest
    :param call_report: call report corresponding to the call request
    :type call_report: pulp.server.dispatch.call.CallReport
    """
    archived_call = ArchivedCall(call_request, call_report)
    collection = ArchivedCall.get_collection()
    collection.insert(archived_call, safe=True)