From ba471ceceb644b5d60c05a5ffa8216fb4ee8f730 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 1 Nov 2010 01:09:03 -0400 Subject: document IRendererInfo in API docs --- docs/api/interfaces.rst | 3 +++ docs/narr/views.rst | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/api/interfaces.rst b/docs/api/interfaces.rst index 2bf55474e..db610308d 100644 --- a/docs/api/interfaces.rst +++ b/docs/api/interfaces.rst @@ -29,3 +29,6 @@ Other Interfaces .. autointerface:: ISessionFactory + .. autointerface:: IRendererInfo + + diff --git a/docs/narr/views.rst b/docs/narr/views.rst index e1983222d..fb500d914 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -744,7 +744,8 @@ following interface: (the package that was 'current' at the time the renderer was registered), ``type`` (the renderer type name), ``registry`` (the current application registry) and ``settings`` (the - deployment settings dictionary).""" + deployment settings dictionary). + """ def __call__(self, value, system): """ Call a the renderer implementation with the value and @@ -754,6 +755,9 @@ following interface: containing available system values (e.g. ``view``, ``context``, and ``request``). """ +The formal interface definition of the ``info`` object passed to a renderer +factory constructor is available as :class:`pyramid.interfaces.IRendererInfo`. + There are essentially two different kinds of renderer factories: - A renderer factory which expects to accept a :term:`resource specification` -- cgit v1.2.3