Commit 7a063a5e authored by Martijn Pieters's avatar Martijn Pieters

Thanks to _facade, the request argument is always present in *args

parent d47d90f2
......@@ -51,10 +51,7 @@ def requestmethod(*methods):
arglen -= len(defaults)
def _curried(*args, **kw):
request = None
if len(args) > r_index:
request = args[r_index]
if IBrowserRequest.providedBy(request):
if request.method not in methods:
raise Forbidden('Request must be %s' % methodsstr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment