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.
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4ad080b936e3e65784af7b02a7cf39aaee9c92b3715688ae41683229a78d12 |
|
MD5 | ffa35b7bbf3bc0e1f0a2ca49bee9c29d |
|
BLAKE2b-256 | c45a4939d97598a02c5581ebaacce8a681ee73ed1a691c44b0413d2317792d3e |
Close
Hashes for pyramid_exclusive_request_methods-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7550ddda35bb50ef70a78fadbe0e3e35f12df3dbf9926502dfe164babd3a0e5 |
|
MD5 | ddd1a4a1176d98d1fb6cc3c0cf12f824 |
|
BLAKE2b-256 | 5319d38b3c7c097a06081dfa8d98b9d2b3e9594f96fa4f18040b822b21b13c1a |
Close
Hashes for pyramid_exclusive_request_methods-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d5f118b8c384e58a758ee25471a264bdcbe698ab007ebb9ecaecd5f87b7cd9 |
|
MD5 | 13f796c9dbe4d5b71791788d0e8fc33f |
|
BLAKE2b-256 | 93126439244d068a3266c8406dfb3216f04ff804c9c041237b4b74d794155729 |