[acl] ajout du parametre "out" dans les kwargs d'une route
This commit is contained in:
parent
409bb400ab
commit
7e4436a2de
|
@ -84,6 +84,8 @@ class HalfRoute(Route):
|
|||
logger.debug(
|
||||
'Args for current route (%s)', param.get('args'))
|
||||
|
||||
if 'out' in param:
|
||||
req.scope['out'] = param['out']
|
||||
|
||||
if 'out' in param:
|
||||
req.scope['out'] = param['out'].copy()
|
||||
|
|
|
@ -108,8 +108,9 @@ def args_check(fct):
|
|||
|
||||
kwargs['data'] = data
|
||||
|
||||
if req.scope.get('out'):
|
||||
kwargs['out'] = req.scope.get('out').copy()
|
||||
out_s = req.scope.get('out')
|
||||
if out_s:
|
||||
kwargs['out'] = list(out_s)
|
||||
|
||||
return await fct(req, *args, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue