From a3dc1324713840a0b153ad0522a2f0c3a829c411 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 4 Nov 2010 14:16:04 -0400 Subject: - 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. --- docs/zcml/view.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'docs') 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', -- cgit v1.2.3