Hello, I'm practicing searching on the Novell Bugzilla for my GSoC project and I've stumbled upon a.. problem, I would say. According to the official documentation[0], I can pass the key 'limit' with an int value to limit the returned search results. I've tried doing this but the results I've came across are at least weird (to me). [...]
a = bz.query({'summary': 'kde'}) len(a) 3635 a = bz.query({'summary': 'kde', 'limit': 5}) a [
https://bugzilla.novell.com/xmlrpc.cgi at 0xe011d0>] a = bz.query({'summary': 'kde', 'limit': 100}) a [ https://bugzilla.novell.com/xmlrpc.cgi at 0xb4c050>, https://bugzilla.novell.com/xmlrpc.cgi at 0xb4c410>] a = bz.query({'summary': 'kde', 'limit': 10, 'offset': 10}) a [] a = bz.query({'summary': 'kde', 'limit': 100, 'offset': 10}) a []
I am using the python-bugzilla module[1], as my mentor has suggested. You can find some sample code for the usage here[2]. Basically, my question is: how can I limit the number of returned search results? Thanks! Mihnea DB [0] http://www.bugzilla.org/docs/3.4/en/html/api/Bugzilla/WebService/Bug.html -- Search section (or just ctrl+f for limit) [1] http://gitorious.org/+opensuse-developers/opensuse/python-bugzilla -- when cloning add " -b suse " or it won't work. [2] https://github.com/mihneadb/Suse-Bug-Reporter/blob/master/interact.py -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org