Skip to content

Validation Feedback

Feedback object that provides the ability to update on the rule validation process.

ValidationFeedback

ValidationFeedback(*args, **kwargs)

Bases: QgsFeedback

Feedback object that provides the ability to update the rule validation process.

Source code in src/cplus_plugin/lib/validation/feedback.py
def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)

    self.progressChanged.connect(self._on_total_progress_changed)

    self._rule_info = None
    self._rule_progress = -1.0
    self._validation_complete = False

current_rule property writable

current_rule

Gets the current rule info being executed.

Returns:

Type Description
RuleInfo

Returns the current rule being executed or None if the feedback object has not been activated.

is_validation_complete property

is_validation_complete

Indicates whether the full validation (i.e. NOT rule validation) is complete.

Returns:

Type Description
bool

True if the full validation is complete, else False.

rule_progress property writable

rule_progress

Gets the current progress of the rule validation being executed.

Returns:

Type Description
float

Percentage value between 0.0 and 100.0.


Last update: November 25, 2024
Back to top