Michael Merickel
2014-01-19 df6065fb1c3724649ac6e75cfcabc273ef6fd0d9
update narrative docs about iterable decorator argument
1 files modified
16 ■■■■■ changed files
docs/narr/viewconfig.rst 16 ●●●●● patch | view | raw | blame | history
docs/narr/viewconfig.rst
@@ -217,7 +217,21 @@
  decorator function will be called with the view callable as a single
  argument.  The view callable it is passed will accept ``(context,
  request)``.  The decorator must return a replacement view callable which
  also accepts ``(context, request)``.
  also accepts ``(context, request)``. The ``decorator`` may also be an
  iterable of decorators, in which case they will be applied one after the
  other to the view, in reverse order. For example::
    @view_config(..., decorator=(decorator2, decorator1))
    def myview(request):
      ...
  Is similar to doing::
    @view_config(...)
    @decorator2
    @decorator1
    def myview(request):
      ...
``mapper``
  A Python object or :term:`dotted Python name` which refers to a :term:`view