batch.configuration package

Submodules

batch.configuration.configuration module

Defines the class for managing a batch configuration

class batch.configuration.configuration.BatchConfiguration

Bases: object

Represents a batch configuration

validate(batch)

Validates the given batch to make sure it is valid with respect to this batch configuration. This method will perform database calls as needed to perform the validation.

Parameters:batch (batch.models.Batch) – The batch model
Returns:A list of warnings discovered during validation
Return type:list()

:raises batch.configuration.exceptions.InvalidConfiguration: If the configuration is invalid

batch.configuration.exceptions module

Defines exceptions that can occur when interacting with batch configurations

exception batch.configuration.exceptions.InvalidConfiguration(name, description)

Bases: util.exceptions.ValidationException

Exception indicating that the provided batch configuration was invalid

Module contents