diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-08-13 03:03:03 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-08-13 03:03:03 +0000 |
| commit | 39480c04dedfcac3b0255f2030a3e58daae7dd0e (patch) | |
| tree | 7adb9fc0c6bc1dcbe548183a8518c2f91df15d5a /CHANGES.txt | |
| parent | 4576408321cbe3510d8cf594f694b20707fbb17f (diff) | |
| download | pyramid-39480c04dedfcac3b0255f2030a3e58daae7dd0e.tar.gz pyramid-39480c04dedfcac3b0255f2030a3e58daae7dd0e.tar.bz2 pyramid-39480c04dedfcac3b0255f2030a3e58daae7dd0e.zip | |
- The Configurator now accepts a dotted name *string* to a package as
a ``package`` constructor argument. The ``package`` argument was
previously required to be a package *object* (not a dotted name
string).
- The ``repoze.bfg.configuration.Configurator.with_package`` method
was added. This method returns a new Configurator using the same
application registry as the configurator object it is called
upon. The new configurator is created afresh with its ``package``
constructor argument set to the value passed to ``with_package``.
This feature will make it easier for future BFG versions to allow
dotted names as arguments in places where currently only object
references are allowed (the work to allow dotted names isntead of
object references everywhere has not yet been done, however).
- The ``repoze.bfg.configuration.Configurator.maybe_dotted`` method
resolves a Python dotted name string supplied as its ``dotted``
argument to a global Python object. If the value cannot be
resolved, a ``repoze.bfg.configuration.ConfigurationError`` is
raised. If the value supplied as ``dotted`` is not a string, the
value is returned unconditionally without any resolution attempted.
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index f5e64f18f..823bc7e38 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,31 @@ Next release ============ +Features +-------- + +- The Configurator now accepts a dotted name *string* to a package as + a ``package`` constructor argument. The ``package`` argument was + previously required to be a package *object* (not a dotted name + string). + +- The ``repoze.bfg.configuration.Configurator.with_package`` method + was added. This method returns a new Configurator using the same + application registry as the configurator object it is called + upon. The new configurator is created afresh with its ``package`` + constructor argument set to the value passed to ``with_package``. + This feature will make it easier for future BFG versions to allow + dotted names as arguments in places where currently only object + references are allowed (the work to allow dotted names isntead of + object references everywhere has not yet been done, however). + +- The ``repoze.bfg.configuration.Configurator.maybe_dotted`` method + resolves a Python dotted name string supplied as its ``dotted`` + argument to a global Python object. If the value cannot be + resolved, a ``repoze.bfg.configuration.ConfigurationError`` is + raised. If the value supplied as ``dotted`` is not a string, the + value is returned unconditionally without any resolution attempted. + Internal -------- |
