(self)
Attempts to fill the instance with the data it represents.

        If the instance has already been delivered or the instance has no URL
        from which to fetch data, `deliver()` raises a `PromiseError`. Other
        exceptions from requesting and decoding a `RemoteObject` that might
        normally result from a `RemoteObject.get()` may also be thrown.
Attempts to fill the instance with the data it represents.
Attempts to fill the instance with the data it represents .
def deliver(self):
        """Attempts to fill the instance with the data it represents.

        If the instance has already been delivered or the instance has no URL
        from which to fetch data, `deliver()` raises a `PromiseError`. Other
        exceptions from requesting and decoding a `RemoteObject` that might
        normally result from a `RemoteObject.get()` may also be thrown.

        """
        if self._delivered:
            raise PromiseError('%s instance %r has already been delivered' % (type(self).__name__, self))
        if self._location is None:
            raise PromiseError('Instance %r has no URL from which to deliver' % (self,))

        http = self._http
        if self._http is None:
            http = remoteobjects.http.userAgent

        request = self.get_request(**self._get_kwargs)
        response, content = http.request(**request)
        self.update_from_response(request['uri'], response, content)
def deliver ( self ) : if self . _delivered : raise PromiseError ( '%s instance %r has already been delivered' % ( type ( self ) . __name__ , self ) ) if self . _location is None : raise PromiseError ( 'Instance %r has no URL from which to deliver' % ( self , ) ) http = self . _http if self . _http is None : http = remoteobjects . http . userAgent request = self . get_request ( * * self . _get_kwargs ) response , content = http . request ( * * request ) self . update_from_response ( request [ 'uri' ] , response , content )