GNOME Bugzilla – Bug 543957
Google contacts only gets the first 25 contacts
Last modified: 2009-05-22 16:06:09 UTC
There is a lack of documentation in both the website and the application. For example, how can I know what "Google Contacts" means? It doesn't seem related to my Gmail contacts because when I synchronize, I only get 25 contacts in my folder.
This is less a docs bug, and more a bug in the contacts dataprovider. Jc2k said he would look into this
ping Jc2k
*** Bug 556046 has been marked as a duplicate of this bug. ***
I asked gdata-java library dvs too and they said me 25 is a default. To retrieve all contacts please check this out: http://code.google.com/apis/contacts/docs/2.0/developers_guide_protocol.html#retrieving_without_query
I tried a little change in the ContactsTwoWay class (/conduit/conduit/modules/GoogleModule/GoogleModule.py) and it works: def _get_all_contacts(self): feed = self.service.GetContactsFeed() ##--OLD CODE: ##if not feed.entry: ## return [] ##return [str(contact.id.text) for contact in feed.entry] ##--NEW CODE: res = [] while True: for contact in feed.entry: res.append(str(contact.id.text)) nextLink = feed.GetNextLink() if nextLink == None: break feed = self.service.GetContactsFeed(uri=nextLink.href) return res (I still don't know how to extract a patch file, sorry)
Created attachment 129405 [details] [review] Patch to get all contacts not just the first 25. I can confirm that this bug is still present in the svn code, and that the fix suggested in the previous comment works, I've converted this to a patch.
It looks like this patch (or an equivalent patch) is applient in Git so closing this bug.