Example #1
0
    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
Example #2
0
    def prompt(self, session, task):

        return [
            PromptChoice('p',
                         'Enter number of other source metadata choice here',
                         self.applychoice)
        ]
Example #3
0
 def before_choose_candidate_event(self, session, task):
     if task.rec <= self.threshold:
         return [PromptChoice('p', 'Print tracks', self.print_tracks)]
Example #4
0
 def before_choose_candidate_listener(self, session, task):
     """Append a "Play" choice to the interactive importer prompt.
     """
     return [PromptChoice('y', 'plaY', self.importer_play)]
Example #5
0
 def before_choose_candidate_listener(self, session, task):
     return [PromptChoice('p', 'Picard', self.run_picard)]
Example #6
0
 def before_choose_candidate_listener(self, session, task):
     if task.candidates:
         return [PromptChoice('n', 'iNspect changes',
                                   self.importer_inspect_candidate)]