Generic Version Rule Class DocumentationΒΆ

class eptransition.rules.version_rule.VersionRule(end_version)[source]

Bases: eptransition.rules.base_rule.TransitionRule

This class implements, in a generic fashion, the transition rule for the Version object. By passing in the identifier for the target version, the rules are set up so this doesn’t have to change for each version.

Parameters:end_version – The new value for the version object’s single field: Version ID
transition(core_object, dependent_objects)[source]