actionreport¶
This module provides a way to display the result of an jukeboxcore.action.ActionCollection to the user.
- class jukeboxcore.gui.actionreport.ActionItemData(actionunit)[source]¶
Bases: jukeboxcore.gui.treemodel.ItemData
A class that holds data of a jukeboxcore.action.ActionUnit
Create a new ActionItemData for the given actionunit
Parameters: actionunit (jukeboxcore.action.ActionUnit) – a action unit Raises: None - colormapping = {'Failure': PySide.QtGui.QColor.fromRgbF(1.000000, 0.600000, 0.200000, 1.000000), 'Skipped': PySide.QtGui.QColor.fromRgbF(1.000000, 1.000000, 0.000000, 1.000000), 'Success': PySide.QtGui.QColor.fromRgbF(0.000000, 1.000000, 0.000000, 1.000000), 'Error': PySide.QtGui.QColor.fromRgbF(1.000000, 0.000000, 0.000000, 1.000000)}¶
- data(column, role)[source]¶
Return the data for the specified column and role
Column 0: The name of the action Column 1: The description of the action Column 2: The status value Column 3: The status message Column 4: The traceback
Parameters: - column (int) – the data column
- role (QtCore.Qt.ItemDataRole) – the data role
Returns: data depending on the role, or None if the column is out of range
Return type: depending on the role or None
Raises: None
- internal_data()[source]¶
Return the action unit
Returns: the action unit Return type: jukeboxcore.action.ActionUnit Raises: None
- jukeboxcore.gui.actionreport.create_action_model(actioncollection)[source]¶
Create and return a new model for the given actioncollection
Parameters: actioncollection (jukeboxcore.action.ActionCollection) – the action collection that should get a model Returns: the created model Return type: TreeModel Raises: None