diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-04 14:16:04 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-04 14:16:04 -0400 |
| commit | a3dc1324713840a0b153ad0522a2f0c3a829c411 (patch) | |
| tree | 939b141a3605f7208bf9ab85a71be15fa98c9150 /docs | |
| parent | 093628449ad6d1a14c93a9e6c5a05fdfec2f4816 (diff) | |
| download | pyramid-a3dc1324713840a0b153ad0522a2f0c3a829c411.tar.gz pyramid-a3dc1324713840a0b153ad0522a2f0c3a829c411.tar.bz2 pyramid-a3dc1324713840a0b153ad0522a2f0c3a829c411.zip | |
- The ``request_type`` argument to the ``view`` ZCML directive, the
``pyramid.configuration.Configurator.add_view`` method, or the
``pyramid.view.view_config`` decorator (nee ``bfg_view``) is no longer
permitted to be one of the strings ``GET``, ``HEAD``, ``PUT``, ``POST`` or
``DELETE``, and now must always be an interface. Accepting the
method-strings as ``request_type`` was a backwards compatibility strategy
servicing repoze.bfg 1.0 applications. Use the ``request_method``
parameter instead to specify that a view a string request-method predicate.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/zcml/view.rst | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/zcml/view.rst b/docs/zcml/view.rst index 392e84430..8117e8ea6 100644 --- a/docs/zcml/view.rst +++ b/docs/zcml/view.rst @@ -132,11 +132,7 @@ Predicate Attributes representing the :term:`interface` that the :term:`request` must have in order for this view to be found and called. The presence of this attribute is largely for backwards compatibility with - older iterations of this framework. This value - may be an HTTP ``REQUEST_METHOD`` string, e.g. ('GET', 'HEAD', - 'PUT', 'POST', or 'DELETE'). Passing request method strings as a - ``request_type`` is deprecated. Use the ``request_method`` - attribute instead for maximum forward compatibility. + older iterations of this framework. ``request_method`` This value can either be one of the strings 'GET', 'POST', 'PUT', |
