Stores transforms (Transform classes) and applies them to document trees. Also keeps track of components by component type name.
There are no implemented interfaces.
add_pending(pending, priority=None)
Store a transform with an associated pending node.
add_transform(transform_class, priority=None, **kwargs)
Store a single transform. Use priority to override the default. kwargs is a dictionary whose contents are passed as keyword arguments to the apply method of the transform. This can be used to pass application-specific data to the transform instance.
add_transforms(transform_list)
Store multiple transforms, with default priorities.
apply_transforms()
Apply all of the stored transforms, in priority order.
get_priority_string(priority)
Return a string, priority combined with self.serialno.
This ensures FIFO order on transforms with identical priority.
get_transforms()
Transforms required by this class. Override in subclasses.
populate_from_components(components)
Store each component's default transforms, with default priorities. Also, store components by type name in a mapping for later lookup.
There are no known subclasses.