diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-10-01 19:21:32 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-10-01 19:21:32 +0000 |
| commit | cd70696918679633eca5b92c9cbe5faa1f045c52 (patch) | |
| tree | dfca78dd947874816b33ec531f6af45e0542f7f6 /repoze | |
| parent | 4df388dd6b262691e239c7d9e96ce1b2bba6d272 (diff) | |
| download | pyramid-cd70696918679633eca5b92c9cbe5faa1f045c52.tar.gz pyramid-cd70696918679633eca5b92c9cbe5faa1f045c52.tar.bz2 pyramid-cd70696918679633eca5b92c9cbe5faa1f045c52.zip | |
wording
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/configuration.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/repoze/bfg/configuration.py b/repoze/bfg/configuration.py index d4fe42fe7..77dbf28e5 100644 --- a/repoze/bfg/configuration.py +++ b/repoze/bfg/configuration.py @@ -1632,13 +1632,17 @@ class Configurator(object): self.registry.registerUtility(factory, IRequestFactory) def set_renderer_globals_factory(self, factory): - """ The object passed as ``factory`` should be an object (or a - :term:`dotted Python name` which refers to an object) that + """ The object passed as ``factory`` should be an callable (or + a :term:`dotted Python name` which refers to an callable) that will be used by the :mod:`repoze.bfg` rendering machinery as a renderers global factory (see :ref:`adding_renderer_globals`). - The factory must return a dictionary of items that will be - merged intto the *system* dictionary passed in to every - renderer used by the application. + + The ``factory`` callable must accept a single argument named + ``system`` (which will be a dictionary) and it must return a + dictionary. When an application uses a renderer, the + factory's return dictionary will be merged into the ``system`` + dictionary, and therefore will be made available to the code + which uses the renderer. .. note:: Using the :meth:`renderer_globals_factory` argument to the |
