Comment 7 for bug 487522

Revision history for this message
Michael Nelson (michael.nelson) wrote : Re: getPublishedSources() does not support batch operations

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