X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=blobdiff_plain;f=src%2Fbackends%2Fgvoice%2Fgvoice.py;h=3f2069fb0c2511ae36417895aa4ff6afc0fd340e;hp=021a03c8ac64dd983ad593b479bdb025275b6da7;hb=233c6c9b5fc53935cac2319f68a1ea052a39d52c;hpb=e4cfee57f895ec65b567ab82cb5e10e40497d66d diff --git a/src/backends/gvoice/gvoice.py b/src/backends/gvoice/gvoice.py index 021a03c..3f2069f 100755 --- a/src/backends/gvoice/gvoice.py +++ b/src/backends/gvoice/gvoice.py @@ -478,14 +478,6 @@ class GVoiceBackend(object): ] return self._parse_recent(recentPages) - def get_contacts(self): - """ - @returns Iterable of (contact id, contact name) - @blocks - """ - page = self._get_page(self._JSON_CONTACTS_URL) - return self._process_contacts(page) - def get_csv_contacts(self): data = { "groupToExport": "mine", @@ -585,13 +577,6 @@ class GVoiceBackend(object): recentCallData["action"] = action yield recentCallData - def _process_contacts(self, page): - accountData = parse_json(page) - for contactId, contactDetails in accountData["contacts"].iteritems(): - # A zero contact id is the catch all for unknown contacts - if contactId != "0": - yield contactId, contactDetails - def _parse_history(self, historyHtml): splitVoicemail = self._seperateVoicemailsRegex.split(historyHtml) for messageId, messageHtml in itergroup(splitVoicemail[1:], 2):