Skip to content

Commit c6afade

Browse files
lmcalvopabloge
andauthored
Update toolium/utils/dataset.py
Co-authored-by: Pablo Guijarro <pablo.guijarroenriquez@telefonica.com>
1 parent c6a4432 commit c6afade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolium/utils/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ def get_value_from_context(param, context):
581581
storages or the context object itself. In a dotted case, "last_request.result" is searched as a "last_request" key
582582
in the context storages or as a property of the context object whose name is last_request. In both cases, when
583583
found, "result" is considered (and resolved) as a property or a key into the returned value.
584-
If the element is a list then return the first element as default or take the index given in the next part
585-
f.e: list.1 returns the second element of the list 'list'.
584+
If the resolved element at one of the tokens is a list, then the next token (if present) is used as the index
585+
to select one of its elements, e.g. "list.1" returns the second element of the list "list".
586586
587587
There is not limit in the nested levels of dotted tokens, so a key like a.b.c.d will be tried to be resolved as:
588588

0 commit comments

Comments
 (0)