No project description provided
Project description
Introduction
pyramid_exclusive_request_methods enables one to add a view config whose view handles all the HTTP request methods and responds with 405 Method Not Allowed for the request methods not explicitly specified in the configuration.
Synopsis:
from pyramid_exclusive_request_methods import exclusive_view_config @view_config(route_name='foo', request_method=['GET']) def foo(context, request): pass @exclusive_view_config(route_name='bar', request_method='GET') def bar(context, request): pass c = Configurator(...) c.includeme('pyramid_exclusive_request_methods')
Contributors
Moriyoshi Koizumi <mozo@mozo.jp>
Changelog
0.0.0
Initial upload to pypi.
0.0.1
Switch to add_exclusive_view directive and exclusive_view_config decorator style, because Exclusively marker doesn’t work as expected due to the limitation of Pyramid.
0.0.2
Bump due to the packaging failure.
0.0.3
Fix a bug that it doesn’t work with view classes.
0.0.4
Fix a bug that it doesn’t work with view_defaults.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for pyramid_exclusive_request_methods-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfd4b10c5ad888011f90c0a25efd82592c2f2fcfd1b4f04d1236f4032ae8455b |
|
MD5 | fc336b994007c39a955a9b24ed41954e |
|
BLAKE2b-256 | 81df8b12a6c4f77047718f6965fb4e7cea9cd642881aa25111940983c74a1a02 |
Close
Hashes for pyramid_exclusive_request_methods-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f6fd90149e26afa84404bb39d0322e5cf7117cd2b9299423a0d62f10261be9 |
|
MD5 | 8714e5217500348a62e968c88c6be0db |
|
BLAKE2b-256 | ed7550d3eec9a02426ef2f986ef9aecc95fceb32617bb407da1d4804e696348e |
Close
Hashes for pyramid_exclusive_request_methods-0.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 638a1b0f52fea314b1ff64b850c09cd36b096ca1945c565be40f519c1234a859 |
|
MD5 | 8ac137206097d64e24363b8afb9f07de |
|
BLAKE2b-256 | 469581997eb77a2c23256927f796ccd8a1cbd9479985b149dc41a5aeaf6348aa |