From fa2c265e7713a23ad76127c322c1f86aec344550 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 11 May 2016 12:36:32 -0500 Subject: [PATCH] Add rattail config object to Session kwargs --- tailbone/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tailbone/config.py b/tailbone/config.py index 458935be..6d9cf93a 100644 --- a/tailbone/config.py +++ b/tailbone/config.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2015 Lance Edgar +# Copyright © 2010-2016 Lance Edgar # # This file is part of Rattail. # @@ -36,10 +36,14 @@ class ConfigExtension(BaseExtension): """ Rattail config extension for Tailbone. Does the following: + * Adds the rattail config object to the constructor kwargs for the + underlying Session factory. + * Configures the main Tailbone database session so that it records changes, if the config file so dictates. """ key = 'tailbone' def configure(self, config): + Session.configure(rattail_config=config) configure_session(config, Session)