def before_choose_candidate_listener(self, session, task): """Append an "Edit" choice and an "edit Candidates" choice (if there are candidates) to the interactive importer prompt. """ choices = [PromptChoice('d', 'eDit', self.importer_edit)] if task.candidates: choices.append(PromptChoice('c', 'edit Candidates', self.importer_edit_candidate)) return choices
def prompt(self, session, task): return [ PromptChoice('p', 'Enter number of other source metadata choice here', self.applychoice) ]
def before_choose_candidate_event(self, session, task): if task.rec <= self.threshold: return [PromptChoice('p', 'Print tracks', self.print_tracks)]
def before_choose_candidate_listener(self, session, task): """Append a "Play" choice to the interactive importer prompt. """ return [PromptChoice('y', 'plaY', self.importer_play)]
def before_choose_candidate_listener(self, session, task): return [PromptChoice('p', 'Picard', self.run_picard)]
def before_choose_candidate_listener(self, session, task): if task.candidates: return [PromptChoice('n', 'iNspect changes', self.importer_inspect_candidate)]