Chris McDonough
2010-11-11 2a2d5024caaa62bee540e32a8f63aa0998f1b9cd
fix issue 32: use renderer rather than zpt render_template_to_response
1 files modified
5 ■■■■■ changed files
docs/narr/hooks.rst 5 ●●●●● patch | view | raw | blame | history
docs/narr/hooks.rst
@@ -159,10 +159,11 @@
.. code-block:: python
   :linenos:
   from pyramid.chameleon_zpt import render_template_to_response
   from pyramid.views import view_config
   @view_config(renderer='templates/login_form.pt')
   def forbidden_view(request):
       return render_template_to_response('templates/login_form.pt')
       return {}
.. note:: When a forbidden view callable is invoked, it is passed a
   :term:`request`.  The ``exception`` attribute of the request will