From 04bcc2a67e866df226ec2f5ec1baa2754bbe354d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 31 Oct 2010 20:00:36 -0400 Subject: pass settings to renderer factory, as most template renderers need to look at at least one setting to determine how to do rendering --- docs/narr/views.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/narr/views.rst b/docs/narr/views.rst index 0070e7a73..7e3dfebf1 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -739,11 +739,12 @@ following interface: class RendererFactory: def __init__(self, info): - """ Constructor: ``info`` will be a dictionary containing the - following keys: ``name`` (the renderer name), ``package``: the - package that was 'current' at the time the renderer was registered, - ``type``: the renderer type name, and ``registry``: the current - registry. """ + """ Constructor: ``info`` will be a dictionary containing + the following keys: ``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 + deployment settings dictionary).""" def __call__(self, value, system): """ Call a the renderer implementation with the value and -- cgit v1.2.3