pyanaconda.modules.common.task.task_interface
Classes
Base class for implementing Task. |
|
DBus interface for a validation task. |
Module Contents
- class pyanaconda.modules.common.task.task_interface.TaskInterface[source]
Bases:
pyanaconda.modules.common.base.base_template.InterfaceTemplate
Base class for implementing Task.
This class has only interface of the Task. Logic will be implemented by each module.
- property Progress: Tuple[Int, Str][source]
Get immediate progress of this task.
- Returns:
Tuple with actual step count and description of this step.
- Return type:
Tuple[Int, Str]
- ProgressChanged(step, message)[source]
Signal making progress for this task.
- Parameters:
step (Int) – Number of the actual step. Please look on the self.Steps to calculate progress percentage.
message (Str) – Short description of what is this task currently trying to do.
- Finish()[source]
Finish the task after it stopped.
This method will raise an error if the task has failed.
- class pyanaconda.modules.common.task.task_interface.ValidationTaskInterface[source]
Bases:
TaskInterface
DBus interface for a validation task.