diff options
| author | Tres Seaver <tseaver@palladion.com> | 2014-11-26 15:16:42 -0500 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2014-11-26 15:16:42 -0500 |
| commit | 30c443fc3b02857d89408668eeca63b7762578b2 (patch) | |
| tree | f4181d5e4e7e0c5bfff441e0fcd9ed2a601cafd2 /docs | |
| parent | f9d58b5843c49248262bbadeacb6e7b209f7abd7 (diff) | |
| parent | d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb (diff) | |
| download | pyramid-30c443fc3b02857d89408668eeca63b7762578b2.tar.gz pyramid-30c443fc3b02857d89408668eeca63b7762578b2.tar.bz2 pyramid-30c443fc3b02857d89408668eeca63b7762578b2.zip | |
Merge pull request #1475 from hugobranquinho/master
Shortcut for package name on registry
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/registry.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api/registry.rst b/docs/api/registry.rst index bab3e26ba..57a80b3f5 100644 --- a/docs/api/registry.rst +++ b/docs/api/registry.rst @@ -14,6 +14,18 @@ accessed as ``request.registry.settings`` or ``config.registry.settings`` in a typical Pyramid application. + .. attribute:: package_name + + .. versionadded:: 1.6 + + When a registry is set up (or created) by a :term:`Configurator`, this + attribute will be the shortcut for + :attr:`pyramid.config.Configurator.package_name`. + + This attribute is often accessed as ``request.registry.package_name`` or + ``config.registry.package_name`` or ``config.package_name`` + in a typical Pyramid application. + .. attribute:: introspector .. versionadded:: 1.3 |
