pywebtools.pyramid.decorators – Decoratorators

The decorators module contains function decorators for use with views.

pywebtools.pyramid.decorators.require_method(methods)

Checks that the current request method is in the list of methods that are allowed for the given request.

Parameters:methods (list of unicode) – The list of valid request methods