def show_task_log_events(parent, task): """Show the events reported in the log file.""" file = task.log_file if file.exists: AbinitEventsFrame(parent, file.path).Show() else: awx.showErrorMessage(parent=parent, message="Log file %s does not exist" % file.path)
def show_task_main_events(parent, task): """Show the events reported in the main output file.""" file = task.output_file if file.exists: AbinitEventsFrame(parent, file.path).Show() else: awx.showErrorMessage(parent=parent, message="Output file %s does not exist" % file.path)
def showAbinitEventsFrame(parent, filepath): """Open a dialog reporting file stats.""" AbinitEventsFrame(parent, filepath).Show()