From 3b681ea5b8ba6136eb8cf7eb090cb60dd76086ec Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Sat, 22 Jan 2011 23:13:10 -0500 Subject: [PATCH] PromiseObject.get() passes on kwargs to get_request() on delivery. --- remoteobjects/promise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remoteobjects/promise.py b/remoteobjects/promise.py index 55cf881..8ff03ea 100644 --- a/remoteobjects/promise.py +++ b/remoteobjects/promise.py @@ -157,6 +157,7 @@ class PromiseObject(remoteobjects.http.HttpObject): self._location = url self._http = http self._delivered = False + self._get_kwargs = kwargs return self @@ -210,7 +211,7 @@ class PromiseObject(remoteobjects.http.HttpObject): if self._http is None: http = remoteobjects.http.userAgent - request = self.get_request() + request = self.get_request(**self._get_kwargs) response, content = http.request(**request) self.update_from_response(request['uri'], response, content)