summaryrefslogtreecommitdiff
path: root/docs/zcml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/zcml')
-rw-r--r--docs/zcml/handler.rst2
-rw-r--r--docs/zcml/view.rst14
2 files changed, 15 insertions, 1 deletions
diff --git a/docs/zcml/handler.rst b/docs/zcml/handler.rst
index 01d442ab6..64aac7e78 100644
--- a/docs/zcml/handler.rst
+++ b/docs/zcml/handler.rst
@@ -155,4 +155,4 @@ You can also add a :term:`route configuration` via:
See Also
~~~~~~~~
-See also :ref:`handlers_chapter`.
+See also :ref:`views_chapter`.
diff --git a/docs/zcml/view.rst b/docs/zcml/view.rst
index b4fabdc2c..ba5c7bf23 100644
--- a/docs/zcml/view.rst
+++ b/docs/zcml/view.rst
@@ -213,6 +213,20 @@ Predicate Attributes
associated view callable will be considered viable for a given
request.
+``decorator``
+ A :term:`dotted Python name` to a function that will be used to decorate
+ the registered :term:`view callable`. The 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)``.
+
+``mapper``
+ A :term:`dotted Python name` which refers to a :term:`view mapper`, or
+ ``None``. By default it is ``None``, which indicates that the view should
+ use the default view mapper. This plug-point is useful for Pyramid
+ extension developers, but it's not very useful for 'civilians' who are just
+ developing stock Pyramid applications.
+
Examples
~~~~~~~~