diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-31 20:00:36 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-31 20:00:36 -0400 |
| commit | 04bcc2a67e866df226ec2f5ec1baa2754bbe354d (patch) | |
| tree | 49c1995408fd6775f3f3e15a3e998d5db2303c17 /docs | |
| parent | 63824da50671728c2ae5cae501208e1fbda5812d (diff) | |
| download | pyramid-04bcc2a67e866df226ec2f5ec1baa2754bbe354d.tar.gz pyramid-04bcc2a67e866df226ec2f5ec1baa2754bbe354d.tar.bz2 pyramid-04bcc2a67e866df226ec2f5ec1baa2754bbe354d.zip | |
pass settings to renderer factory, as most template renderers need to look at at least one setting to determine how to do rendering
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/views.rst | 11 |
1 files changed, 6 insertions, 5 deletions
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 |
