From c74ff77ab9ddeb0fa8387524ce916f4eca7edcd8 Mon Sep 17 00:00:00 2001 From: cguardia Date: Thu, 5 May 2011 22:56:14 -0500 Subject: added note about constructor argument for same purpose, for uniformity --- pyramid/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyramid/config.py b/pyramid/config.py index 23dba7c84..602a5b60f 100644 --- a/pyramid/config.py +++ b/pyramid/config.py @@ -2145,6 +2145,10 @@ class Configurator(object): Configure the application with a :term:`session factory`. If this method is called, the ``session_factory`` argument must be a session factory callable. + + .. note:: Using the ``session_factory`` argument to the + :class:`pyramid.config.Configurator` constructor + can be used to achieve the same purpose. """ def register(): self.registry.registerUtility(session_factory, ISessionFactory) -- cgit v1.2.3