diff options
| author | Chris McDonough <chrism@plope.com> | 2011-11-30 12:55:41 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-11-30 12:55:41 -0500 |
| commit | 57a0d7765c54031e6ac83881b536712316f22c45 (patch) | |
| tree | 2b708572847ab35aa5172d5d5255daf8f5f07485 /docs/api/registry.rst | |
| parent | 47e1f7336d2d954182cb439a0327d93044cfa244 (diff) | |
| download | pyramid-57a0d7765c54031e6ac83881b536712316f22c45.tar.gz pyramid-57a0d7765c54031e6ac83881b536712316f22c45.tar.bz2 pyramid-57a0d7765c54031e6ac83881b536712316f22c45.zip | |
docs; todo; coverage for Introspector
Diffstat (limited to 'docs/api/registry.rst')
| -rw-r--r-- | docs/api/registry.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/api/registry.rst b/docs/api/registry.rst index 4d327370a..3dbf73a67 100644 --- a/docs/api/registry.rst +++ b/docs/api/registry.rst @@ -14,3 +14,28 @@ accessed as ``request.registry.settings`` or ``config.registry.settings`` in a typical Pyramid application. + .. attribute:: introspector + + When a registry is set up (or created) by a :term:`Configurator`, the + registry will be decorated with an instance named ``introspector`` + implementing the :class:`pyramid.interfaces.IIntrospector` interface. + See also :attr:`pyramid.config.Configurator.introspector``. + + When a registry is created "by hand", however, this attribute will not + exist until set up by a configurator. + + This attribute is often accessed as ``request.registry.introspector`` in + a typical Pyramid application. + + This attribute is new as of :app:`Pyramid` 1.3. + +.. class:: Introspectable + + The default implementation of the interface + :class:`pyramid.interfaces.IIntrospectable` used by framework exenders. + An instance of this class is is created when + :attr:`pyramid.config.Configurator.introspectable` is called. + + This class is new as of :app:`Pyramid` 1.3. + + |
