Two Phase Updates#

A system for two phase updates: Update, and Commit.

class ppb.features.twophase.Commit[source]#

Fired after Update.

class ppb.features.twophase.TwoPhaseMixin[source]#

Mixin to apply to objects to handle two phase updates.

on_commit(event, signal)[source]#

Commit changes previously staged.

stage_changes(**kwargs)[source]#

Stage changes for the next commit.

These are just properties on the current object to update.

class ppb.features.twophase.TwoPhaseSystem(**props)[source]#

Produces the Commit event.