From e16ab0ed58eb6675e457a2f57ed4d4d5030cc41a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 8 Dec 2010 02:06:06 -0500 Subject: deprecate Configurator, add Config --- CHANGES.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6f8ec355b..dddfecaf7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,22 @@ +Twophase branch +=============== + +- ``pyramid.configuration.Config`` was added. It has the same API as the old + ``Configurator`` which it means to replace, except by default it is a + *non-autocommitting* configurator. It also has a new API method named + ``with_context`` (a classmethod). + +- ``pyramid.configuration.Configurator`` is now deprecated. Use + ``pyramid.configuration.Config`` passing its constructor + ``autocommit=True`` instead. The ``pyramid.configuration.Configurator`` + alias will live for a long time, as every application uses it. + +- The ``pyramid.testing.setUp`` function now accepts an ``autocommit`` + keyword argument, which defaults to ``True``. If it is passed ``False``, + the Config object returned by ``setUp`` will be a non-autocommiting Config + object. + + Next release ============ -- cgit v1.2.3 From 421baeeef8db473a71d9c66f6e29a73afb8ee91c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 8 Dec 2010 12:02:59 -0500 Subject: create a context only as necessary (speed) --- CHANGES.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index dddfecaf7..aa4c07d7b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,7 +3,9 @@ Twophase branch - ``pyramid.configuration.Config`` was added. It has the same API as the old ``Configurator`` which it means to replace, except by default it is a - *non-autocommitting* configurator. It also has a new API method named + *non-autocommitting* configurator, unlike + ``pyramid.configuration.Configurator``, which will autocommit every time a + configuration method is called. It also has a new API method named ``with_context`` (a classmethod). - ``pyramid.configuration.Configurator`` is now deprecated. Use -- cgit v1.2.3 From d7f2590a4c2c2164bdb01ba977119ccbb6b2b09c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 9 Dec 2010 02:30:23 -0500 Subject: fix docs: pyramid.configuration -> pyramid.config --- CHANGES.txt | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index aa4c07d7b..c719bbfad 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,24 +1,31 @@ Twophase branch =============== -- ``pyramid.configuration.Config`` was added. It has the same API as the old - ``Configurator`` which it means to replace, except by default it is a - *non-autocommitting* configurator, unlike - ``pyramid.configuration.Configurator``, which will autocommit every time a - configuration method is called. It also has a new API method named - ``with_context`` (a classmethod). +- A new module named ``pyramid.config`` was added. It subsumes the duties of + the older ``pyramid.configuration`` module. The ``pyramid.configuration`` + module remains, but it is deprecated. - ``pyramid.configuration.Configurator`` is now deprecated. Use - ``pyramid.configuration.Config`` passing its constructor + ``pyramid.config.Configurator``, passing its constructor ``autocommit=True`` instead. The ``pyramid.configuration.Configurator`` - alias will live for a long time, as every application uses it. + alias will live for a long time, as every application uses it, but its + import now issues a deprecation warning. The + ``pyramid.config.Configurator`` class has the same API as + ``pyramid.configuration.Configurator`` class, which it means to replace, + except by default it is a *non-autocommitting* configurator. The + now-deprecated ``pyramid.configuration.Configurator`` will autocommit every + time a configuration method is called. + +- The new ``pyramid.config.Configurator` class has API methods that the older + ``pyramid.configuration.Configurator`` class did not: ``with_context`` (a + classmethod), ``include``, ``action``, and ``commit``. These methods exist + for imperative application extensibility purposes. - The ``pyramid.testing.setUp`` function now accepts an ``autocommit`` keyword argument, which defaults to ``True``. If it is passed ``False``, the Config object returned by ``setUp`` will be a non-autocommiting Config object. - Next release ============ -- cgit v1.2.3