def operate_selected_rows(self, operator):
model, tree_paths = self.selection.get_selected_rows()<EOL>if not tree_paths:<EOL><INDENT>return<EOL><DEDENT>fs_ids = []<EOL>for tree_path in tree_paths:<EOL><INDENT>fs_ids.append(model[tree_path][FSID_COL])<EOL><DEDENT>for fs_id in fs_ids:<EOL><INDENT>row = self.get_row_by_fsid(fs_id)<EOL>if not row:<EOL><INDENT>return<EOL><DEDENT>operator(row, scan=False)<EOL><DEDENT>self.check_commit(force=True)<EOL>self.scan_tasks(ignore_shutdown=True)<EOL>
对选中的条目进行操作.

        operator  - 处理函数