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.
0.0.5
Fix a bug that it doesn’t work when the views forms a multiview.
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 Distribution
Hashes for pyramid_exclusive_request_methods-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1954d04983bb2e5f418bf4cd6e3df0896f50c5cf093a28b5ccd4fbc8366449 |
|
MD5 | aceaf1f2b3d12255ce0245c23354bbab |
|
BLAKE2b-256 | 596ea49be789a5d465bf389132fc0466430be0fdd507204076652db7baa537bd |
Hashes for pyramid_exclusive_request_methods-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf973cf3eb0c2433504ec77b2a415a368bf73ae8822f7416f20e010b91071ea |
|
MD5 | b8adb621d40d151b8eaedc6d17700e2e |
|
BLAKE2b-256 | d6218fb9ce5c6b393e3fabcfa8d42e49cd6ed13876b8bf5fe8aeadaa7e8145fa |