def save(self): """ save content info :return: """ for index, row in enumerate(self.children.values()): task = row.get_as_dict() if self.validate_task(row, task): is_success = Tasks.create_or_update_data(task) # TODO: resolve not success if not is_success: info = 'fail' else: info='successful!' self.set_info(info) if not is_success: break else: print(index) break