From f5fa3f9e2a754ce199386e3f20735cd2dfbbc3fc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 1 Nov 2010 00:43:43 -0400 Subject: for performance reasons (to avoid unnecessary ZCA lookups), pass the helper object itself to a renderer rather than a dictionary derivation) --- docs/narr/views.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/narr/views.rst b/docs/narr/views.rst index 7e3dfebf1..e1983222d 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -739,8 +739,8 @@ following interface: class RendererFactory: def __init__(self, info): - """ Constructor: ``info`` will be a dictionary containing - the following keys: ``name`` (the renderer name), ``package`` + """ Constructor: ``info`` will be an object having the + the following attributes: ``name`` (the renderer name), ``package`` (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 @@ -757,14 +757,14 @@ following interface: There are essentially two different kinds of renderer factories: - A renderer factory which expects to accept a :term:`resource specification` - or an absolute path as the ``name`` value in the ``info`` value fed to its - constructor. These renderer factories are registered with a ``name`` value - that begins with a dot (``.``). These types of renderer factories usually - relate to a file on the filesystem, such as a template. + or an absolute path as the ``name`` attribute of the ``info`` object fed to + its constructor. These renderer factories are registered with a ``name`` + value that begins with a dot (``.``). These types of renderer factories + usually relate to a file on the filesystem, such as a template. - A renderer factory which expects to accept a token that does not represent a - filesystem path or a resource specification in the ``name`` value of the - ``info`` dict fed to its constructor. These renderer factories are + filesystem path or a resource specification in the ``name`` attribute of the + ``info`` object fed to its constructor. These renderer factories are registered with a ``name`` value that does not begin with a dot. These renderer factories are typically object serializers. -- cgit v1.2.3