Last updated:
0 purchases
pyramidexclusiverequestmethods 0.0.7
Contents
Introduction
Contributors
Changelog
0.0.0
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
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 <[email protected]>
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.
0.0.6
Fix for Pyramid 1.8
0.0.7
Fix a bug that it doesn’t work when the different route is specified to each attribute of a view class in the view config.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.