I tried the suggestion of passing ws.size, but as hinted at by leonardr, it gets rejected as an unrecognized parameter:
{{{ kwargs = {'ws.size': 10} changed = archive.getPublishedSources(status="Published", **kwargs) }}}
results in:
{{{ Traceback (most recent call last): File "/home/michael/tmp/launchpad-fail.py", line 66, in <module> c.get_changelogs() File "/home/michael/tmp/launchpad-fail.py", line 58, in get_changelogs changed = archive.getPublishedSources(status="Published", **kwargs) File "/home/michael/canonical/lp-sourcedeps/eggs/lazr.restfulclient-0.9.10-py2.5.egg/lazr/restfulclient/resource.py", line 465, in __call__ url = self.wadl_method.build_request_url(**args) File "/home/michael/canonical/lp-sourcedeps/eggs/wadllib-1.1.4-py2.5.egg/wadllib/application.py", line 582, in build_request_url return self.request.build_url(param_values, **kw_param_values) File "/home/michael/canonical/lp-sourcedeps/eggs/wadllib-1.1.4-py2.5.egg/wadllib/application.py", line 695, in build_url self.query_params, param_values, **kw_param_values) File "/home/michael/canonical/lp-sourcedeps/eggs/wadllib-1.1.4-py2.5.egg/wadllib/application.py", line 179, in validate_param_values % "', '".join(param_values.keys())) ValueError: Unrecognized parameter(s): 'ws.size' }}}
Leonard says:
<leonardr> noodles: ok, the simplest solution is to change lazr.restfulclient and wadllib to let ws.* params through
I tried the suggestion of passing ws.size, but as hinted at by leonardr, it gets rejected as an unrecognized parameter:
{{{ getPublishedSou rces(status= "Published" , **kwargs)
kwargs = {'ws.size': 10}
changed = archive.
}}}
results in:
{{{ michael/ tmp/launchpad- fail.py" , line 66, in <module> changelogs( ) michael/ tmp/launchpad- fail.py" , line 58, in get_changelogs getPublishedSou rces(status= "Published" , **kwargs) michael/ canonical/ lp-sourcedeps/ eggs/lazr. restfulclient- 0.9.10- py2.5.egg/ lazr/restfulcli ent/resource. py", line 465, in __call__ method. build_request_ url(**args) michael/ canonical/ lp-sourcedeps/ eggs/wadllib- 1.1.4-py2. 5.egg/wadllib/ application. py", line 582, in build_request_url build_url( param_values, **kw_param_values) michael/ canonical/ lp-sourcedeps/ eggs/wadllib- 1.1.4-py2. 5.egg/wadllib/ application. py", line 695, in build_url query_params, param_values, **kw_param_values) michael/ canonical/ lp-sourcedeps/ eggs/wadllib- 1.1.4-py2. 5.egg/wadllib/ application. py", line 179, in validate_ param_values param_values. keys()) )
Traceback (most recent call last):
File "/home/
c.get_
File "/home/
changed = archive.
File "/home/
url = self.wadl_
File "/home/
return self.request.
File "/home/
self.
File "/home/
% "', '".join(
ValueError: Unrecognized parameter(s): 'ws.size'
}}}
Leonard says:
<leonardr> noodles: ok, the simplest solution is to change lazr.restfulclient and wadllib to let ws.* params through