@property
    def results(self):
        assert (not self.running), "Task is still executing."
        if self.jobStatus in self._error_status:
            raise ServerError("Error: job status %r" % self.jobStatus)
        if self._results is None:
            def item_iterator():
                for resref in self._json_struct['results'].itervalues():
                    rel = self._get_subfolder(resref['paramUrl'], RestURL)
                    result = rel._json_struct
                    #self.parent.parent.parameters
                    #datatype = gptypes.GPBaseType._gp_type_mapping.get(
                    #                                result['dataType'],None)
                    datatype = None
                    conversion = None
                    for param in self.parent.parent.parameters:
                        if param['name'] == result['paramName']:
                            datatype = param['datatype']
                    if datatype is None:
                        conversion = str
                    else:
                        conversion = datatype.fromJson
                    dt = result['paramName']
                    val = conversion(result['value'])
                    yield (dt, val)
            self._results = dict(item_iterator())
        return self._results
dataset/ETHPy150Open jasonbot/arcrest/arcrest/server.py/GPJobStatus.results/original