'This will save all of the selected import items
@todo: parameter descriptions?'

def _commit_import_job(self, upload_id, items):

    db = current.db
    resource = self.request.resource
    self.importDetails = dict()
    table = self.upload_table
    row = db((table.id == upload_id)).select(table.job_id, table.replace_option, limitby=(0, 1)).first()
    if (row is None):
        return False
    else:
        job_id = row.job_id
        current.response.s3.import_replace = row.replace_option
    itemTable = S3ImportJob.define_item_table()
    if (itemTable != None):
        rows = self._get_all_items(upload_id, as_string=True)
        self._store_import_details(job_id, 'preDelete')
        for _id in rows:
            if (str(_id) not in items):
                db((itemTable.id == _id)).delete()
        self.table = self.controller_table
        self.tablename = self.controller_tablename
        self._store_import_details(job_id, 'preImportTree')
        resource.import_xml(None, job_id=job_id, ignore_errors=True)
        return (resource.error is None)
