[acl] ajout du parametre "out" dans les kwargs d'une route

This commit is contained in:
Maxime Alves LIRMM@home 2022-01-25 14:16:49 +01:00
parent 409bb400ab
commit 7e4436a2de
2 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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)