Chris McDonough
2010-11-04 a3dc1324713840a0b153ad0522a2f0c3a829c411
refs
author Chris McDonough <chrism@plope.com>
Thursday, November 4, 2010 19:16 +0100
committer Chris McDonough <chrism@plope.com>
Thursday, November 4, 2010 19:16 +0100
commita3dc1324713840a0b153ad0522a2f0c3a829c411
tree 939b141a3605f7208bf9ab85a71be15fa98c9150 tree | zip | gz
parent 093628449ad6d1a14c93a9e6c5a05fdfec2f4816 view | diff
- 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.
6 files modified
126 ■■■■ changed files
CHANGES.txt 20 ●●●● diff | view | raw | blame | history
docs/zcml/view.rst 6 ●●●● diff | view | raw | blame | history
pyramid/configuration.py 5 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_configuration.py 13 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_zcml.py 62 ●●●●● diff | view | raw | blame | history
pyramid/zcml.py 20 ●●●● diff | view | raw | blame | history