SAPlugin Python Module

CherryPy plugin to manage SQLAlchemy session connection.

class pacifica.auth.saplugin.SAEnginePlugin(bus, connection_string=None)[source]

CherryPy SQLAlchemy Plugin.

__init__(bus, connection_string=None)[source]

Create the plugin saving engine connection and session.

bind()[source]

Bind the session to the engine.

commit()[source]

Commit the session to the database or rollback.

start()[source]

Start the engine connection and subscribe bind and commit.

stop()[source]

Unsubscribe bind and commit and dispose of engine.