wutta_continuum.conf

App Configuration

class wutta_continuum.conf.WuttaContinuumConfigExtension[source]

App config extension for Wutta-Continuum.

This adds a startup hook, which can optionally turn on the SQLAlchemy-Continuum versioning features for the main app DB.

class wutta_continuum.conf.WuttaContinuumPlugin[source]

SQLAlchemy-Continuum manager plugin for Wutta-Continuum.

This tries to assign the current user and IP address to the transaction.

It will assume the “current machine” IP address, which may be suitable for some apps but not all (e.g. web apps, where IP address should reflect an arbitrary client machine).

However it does not actually have a way to determine the current user. WuttaWeb therefore uses a different plugin, based on this one, to get both the user and IP address from current request.

You can override this to use a custom plugin for this purpose; if so you must specify in your config file:

[wutta_continuum]
wutta_plugin_spec = poser.db.continuum:PoserContinuumPlugin

See also the SQLAlchemy-Continuum docs for Plugins.