def coerce(self, value, resource):
        """Get a dict with attributes from ``value``.

        Arguments
        ---------
        value : ?
            The value to get some resources from.
        resource : dataql.resources.Object
            The ``Object`` object used to obtain this value from the original one.

        Returns
        -------
        dict
            A dictionary containing the wanted resources for the given value.
            Key are the ``name`` attributes of the resources, and the values are the solved values.

        """

        return {r.name: self.registry.solve_resource(value, r) for r in resource.resources}
def coerce ( self , value , resource ) : return { r . name : self . registry . solve_resource ( value , r ) for r in resource . resources }
Get a dict with attributes from ``value``.

        Arguments
        ---------
        value : ?
            The value to get some resources from.
        resource : dataql.resources.Object
            The ``Object`` object used to obtain this value from the original one.

        Returns
        -------
        dict
            A dictionary containing the wanted resources for the given value.
            Key are the ``name`` attributes of the resources, and the values are the solved values.