diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-02-02 03:18:21 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-02-02 03:18:21 +0000 |
| commit | 362061b24ce3f5d187a4a3a14f566c1653bccfb9 (patch) | |
| tree | ec98c0be57e836b050f7b9a42a7e9377d7a2225f /docs/zcml | |
| parent | bd363b8e0028f13819d833f02358f617e09a5d8a (diff) | |
| download | pyramid-362061b24ce3f5d187a4a3a14f566c1653bccfb9.tar.gz pyramid-362061b24ce3f5d187a4a3a14f566c1653bccfb9.tar.bz2 pyramid-362061b24ce3f5d187a4a3a14f566c1653bccfb9.zip | |
- Remove ``view_header``, ``view_accept``, ``view_xhr``,
``view_path_info``, ``view_request_method``, ``view_request_param``,
and ``view_containment`` predicate arguments from the
``Configurator.add_route`` argument list. These arguments were
speculative. If you need the features exposed by these arguments,
add a view associated with a route using the ``route_name`` argument
to the ``add_view`` method instead.
- Remove ``view_header``, ``view_accept``, ``view_xhr``,
``view_path_info``, ``view_request_method``, ``view_request_param``,
and ``view_containment`` predicate arguments from the ``route`` ZCML
directive attribute set. These attributes were speculative. If you
need the features exposed by these attributes, add a view associated
with a route using the ``route_name`` attribute of the ``view`` ZCML
directive instead.
Diffstat (limited to 'docs/zcml')
| -rw-r--r-- | docs/zcml/route.rst | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/zcml/route.rst b/docs/zcml/route.rst index 169252d77..8bee3c14f 100644 --- a/docs/zcml/route.rst +++ b/docs/zcml/route.rst @@ -162,31 +162,6 @@ Attributes .. note:: This feature is new as of :mod:`repoze.bfg` 1.1. -``view_request_type`` - A :term:`dotted Python name` to an interface representing a - :term:`request type`. If this argument is not specified, any - request type will be considered a match for the view associated with - this route. - - If the ``view`` attribute is not provided, this attribute has no - effect. - - This attribute can also be spelled as ``request_type``. - -``view_containment`` - This value should be a :term:`dotted Python name` string - representing the class that a graph traversal parent object of the - :term:`context` must be an instance of (or :term:`interface` that a - parent object must provide) in order for this view to be found and - called. Your models must be "location-aware" to use this feature. - See :ref:`location_aware` for more information about - location-awareness. - - If the ``view`` attribute is not provided, this attribute has no - effect. - - .. note:: This feature is new as of :mod:`repoze.bfg` 1.1. - ``view_attr`` The view machinery defaults to using the ``__call__`` method of the view callable (or the function itself, if the view callable is a |
