Exemplo n.º 1
0
    def execute_action(self):
        selected_actions = self.model_action.get_selected_results_with_index()

        if selected_actions and self.args_for_action:
            for name, _, act_idx in selected_actions:
                try:
                    action = self.actions[act_idx]
                    if action:
                        action.act([arg for arg, _, _ in self.args_for_action], self)
                except Exception as e:
                    debug.log("execute_action", e)
Exemplo n.º 2
0
 def execute_action(self):
     # selected_actions = self.model_action.get_selected_results_with_index_f(sep=self.model.finder.sep)
     selected_actions = self.model_action.get_selected_results_with_index()
     
     if selected_actions and self.args_for_action:
         for name, _, act_idx in selected_actions:
             # debug.log(f'init.py 122, {self.args_for_action[0][0]}')
             try:
                 action = self.actions[act_idx]
                 if action:
                     action.act([arg for arg, _, _ in self.args_for_action], self)
             except Exception as e:
                 debug.log("init.py, execute_action", e)