PromiseObject.get() passes on kwargs to get_request() on delivery.

This commit is contained in:
Carl Meyer 2011-01-22 23:13:10 -05:00
Родитель d306b53393
Коммит 3b681ea5b8
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -157,6 +157,7 @@ class PromiseObject(remoteobjects.http.HttpObject):
self._location = url self._location = url
self._http = http self._http = http
self._delivered = False self._delivered = False
self._get_kwargs = kwargs
return self return self
@ -210,7 +211,7 @@ class PromiseObject(remoteobjects.http.HttpObject):
if self._http is None: if self._http is None:
http = remoteobjects.http.userAgent http = remoteobjects.http.userAgent
request = self.get_request() request = self.get_request(**self._get_kwargs)
response, content = http.request(**request) response, content = http.request(**request)
self.update_from_response(request['uri'], response, content) self.update_from_response(request['uri'], response, content)