The cornice adapter now handle the url matched parameters
This commit is contained in:
parent
0f0d9e901d
commit
c1c8e709ad
@ -23,7 +23,7 @@ import wsme.runtime
|
|||||||
import functools
|
import functools
|
||||||
|
|
||||||
from wsme.rest.args import (
|
from wsme.rest.args import (
|
||||||
args_from_params, args_from_body, combine_args
|
args_from_args, args_from_params, args_from_body, combine_args
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,8 @@ def signature(*args, **kwargs):
|
|||||||
def callfunction(request):
|
def callfunction(request):
|
||||||
args, kwargs = combine_args(
|
args, kwargs = combine_args(
|
||||||
funcdef,
|
funcdef,
|
||||||
(args_from_params(funcdef, request.params),
|
(args_from_args(funcdef, (), request.matchdict),
|
||||||
|
args_from_params(funcdef, request.params),
|
||||||
args_from_body(funcdef, request.body, request.content_type))
|
args_from_body(funcdef, request.body, request.content_type))
|
||||||
)
|
)
|
||||||
wsme.runtime.check_arguments(funcdef, args, kwargs)
|
wsme.runtime.check_arguments(funcdef, args, kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user