def coerce(self, value, resource):
if not isinstance(value, Iterable):<EOL><INDENT>raise NotIterable(resource, self.registry[value])<EOL><DEDENT>if len(resource.resources) == <NUM_LIT:1>:<EOL><INDENT>res = resource.resources[<NUM_LIT:0>]<EOL>return [self.registry.solve_resource(v, res) for v in value]<EOL><DEDENT>return [<EOL>[self.registry.solve_resource(v, res) for res in resource.resources]<EOL>for v in value<EOL>]<EOL>
Convert a list of objects in a list of dicts.

        Arguments
        ---------
        value : iterable
            The list (or other iterable) to get values to get some resources from.
        resource : dataql.resources.List
            The ``List`` object used to obtain this value from the original one.

        Returns
        -------
        list
            A list with one entry for each iteration get from ``value``.
            If the ``resource`` has only one sub-resource, each entry in the result list will
            be the result for the subresource for each iteration.
            If the ``resource`` has more that one sub-resource, each entry in the result list will
            be another list with an entry for each subresource for the current iteration.

        Raises
        ------
        dataql.solvers.exceptions.NotIterable
            When the value is not iterable.