good value for callback for a slave that return a list
This commit is contained in:
@ -71,6 +71,8 @@ class Values(object):
|
||||
if opt.impl_is_submulti() and submulti_index is undefined and \
|
||||
(len(value) == 0 or not isinstance(value[0], list)):
|
||||
return value
|
||||
if not opt.impl_is_submulti() and len(value) > index:
|
||||
return value[index]
|
||||
else:
|
||||
return value
|
||||
if with_meta:
|
||||
|
Reference in New Issue
Block a user