summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Branquinho <hugobranq@gmail.com>2014-11-25 19:38:24 +0000
committerHugo Branquinho <hugobranq@gmail.com>2014-11-25 19:38:24 +0000
commitd89c5f76b3032a1447f19dc87a7a6ceb7508c3cb (patch)
treeab3207872d70623cec3130af07865f0a6b69fb1e
parent39846565d0d98a6a9ef2ef34faad3eb620b3e9fb (diff)
downloadpyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.tar.gz
pyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.tar.bz2
pyramid-d89c5f76b3032a1447f19dc87a7a6ceb7508c3cb.zip
Documentation added
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--docs/api/registry.rst12
2 files changed, 14 insertions, 0 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 66f029cb7..9c2191f3b 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -234,3 +234,5 @@ Contributors
- Fenton Travers, 2014/05/06
- Randall Leeds, 2014/11/11
+
+- Hugo Branquinho, 2014/11/25
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