On Tue, 27 May 2014 15:44:10 -0700 Lisa Nguyen lisa.nguyen@linaro.org wrote:
Hi all,
I'm writing scripts in Python using the LAVA XML-RPC API to parse data from my bundle stream.
I read the documentation for the dashboard.get_filter_results() method. I understand that by default, the count parameter is set to 10 as shown here:
get_filter_results(filter_name, count=10, offset=0)
I get working results with:
print "filter results: %s\n" % server.dashboard.get_filter_results(filter_name, 2)
or
print "filter results: %s\n" % server.dashboard.get_filter_results(filter_name, 25)
or, to use offset:
print "filter results: %s\n" % server.dashboard.get_filter_results(filter_name, 25, 15)
This does enforce strict variable ordering, I'm not sure why.
I would like to be able to display more than 10 results (currently have 75 pm-qa test runs for beaglebone-black), or am I misunderstanding the purpose of count?
This might be a limitation in the linaro-django-xmlrpc support integrated into lava-server. The xmlrpclib docs do appear to hint that the usual python default argument syntax should work.
https://docs.python.org/2/library/xmlrpclib.html