'Load an item from the item table (counterpart to add_item
when restoring a job from the database)'

def load_item(self, row):

    item = S3ImportItem(self)
    if (not item.restore(row)):
        self.error = item.error
        if (item.load_parent is None):
            self.error_tree.append(deepcopy(item.element))
    item_id = item.item_id
    self.items[item_id] = item
    return item_id
