-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.util.validate_form
César Román edited this page May 1, 2024
·
12 revisions
Warning
Deprecated since version 2024.5.0.
Performs a form validation.
Args:
- strings (dict): A dictionary containing all strings which must not be empty. Optional.
- numbers (dict): A dictionary containing all numbers which must be greater than zero. Optional.
- collections (dict): A dictionary containing all collections which must at least contain an element. Optional.
Returns:
- tuple[bool, str]: A tuple containing:
is_valid (
bool
): True if all validation tests have passed, False otherwise. error_message (str
): Error message in case any validation test has failed.
Use incendium.gui.validate_form
.
See code examples.