invenio_migrator/tasks/deposit.py
def load_deposit(data):
    """Load the raw JSON dump of the Deposition.

    Uses Record API in order to bypass all Deposit-specific initialization,
    which are to be done after the final stage of deposit migration.

    :param data: Dictionary containing deposition data.
    :type data: dict
    """
    from invenio_db import db
    deposit, dep_pid = create_record_and_pid(data)
    deposit = create_files_and_sip(deposit, dep_pid)
    db.session.commit()
def load_deposit(data):
    from invenio_db import db
    deposit, dep_pid = create_record_and_pid(data)
    deposit = create_files_and_sip(deposit, dep_pid)
    db.session.commit()
def load_deposit ( data ) : from invenio_db import db deposit , dep_pid = create_record_and_pid ( data ) deposit = create_files_and_sip ( deposit , dep_pid ) db . session . commit ( )
Load the raw JSON dump of the Deposition.

    Uses Record API in order to bypass all Deposit-specific initialization,
    which are to be done after the final stage of deposit migration.

    :param data: Dictionary containing deposition data.
    :type data: dict
Load the raw JSON dump of the Deposition .