summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-03-14 22:35:19 -0500
committerMichael Merickel <michael@merickel.org>2016-03-14 22:35:19 -0500
commit64bf7eec9b868fbc113341c7f5675c063aea002b (patch)
treed78921937e3728f7d270b0453234166b53524d46
parentcbf686706bcc8e471977185a6b27678b924f4dc2 (diff)
downloadpyramid-64bf7eec9b868fbc113341c7f5675c063aea002b.tar.gz
pyramid-64bf7eec9b868fbc113341c7f5675c063aea002b.tar.bz2
pyramid-64bf7eec9b868fbc113341c7f5675c063aea002b.zip
use the implicit name in the doc examples
-rw-r--r--docs/narr/hooks.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index 13daed1fc..3f66f4988 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -1631,7 +1631,7 @@ is a callable that can provide timing information for the view pipeline:
response.headers['X-View-Performance'] = '%.3f' % (end - start,)
return wrapper_view
- config.add_view_deriver('timing_view', timing_view)
+ config.add_view_deriver(timing_view)
View derivers are unique in that they have access to most of the options
passed to :meth:`pyramid.config.Configurator.add_view` in order to decide what
@@ -1656,7 +1656,7 @@ token unless ``disable_csrf=True`` is passed to the view:
require_csrf_view.options = ('disable_csrf',)
- config.add_view_deriver('require_csrf_view', require_csrf_view)
+ config.add_view_deriver(require_csrf_view)
def myview(request):
return 'protected'