diff options
| author | Hugo Branquinho <hugobranq@gmail.com> | 2014-11-25 19:38:24 +0000 |
|---|---|---|
| committer | Hugo Branquinho <hugobranq@gmail.com> | 2014-11-25 19:38:24 +0000 |
| commit | d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb (patch) | |
| tree | ab3207872d70623cec3130af07865f0a6b69fb1e /docs/api/registry.rst | |
| parent | 39846565d0d98a6a9ef2ef34faad3eb620b3e9fb (diff) | |
| download | pyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.tar.gz pyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.tar.bz2 pyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.zip | |
Documentation added
Diffstat (limited to 'docs/api/registry.rst')
| -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 |
