'Callback for invoking the functionality during an interactive
import session on a *candidate*. The candidate\'s metadata is
applied to the original items.'

def importer_edit_candidate(self, session, task):

    sel = ui.input_options([], numrange=(1, len(task.candidates)))
    task.match = task.candidates[(sel - 1)]
    task.apply_metadata()
    return self.importer_edit(session, task)
