def refresh(self):
        """Return a deferred."""
        d = self.request('get', self.instance_url())
        return d.addCallback(self.refresh_from).addCallback(lambda _: self)
def refresh ( self ) : d = self . request ( 'get' , self . instance_url ( ) ) return d . addCallback ( self . refresh_from ) . addCallback ( lambda _ : self )
Return a deferred.