maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] The One Ring (https://talk.maemo.org/showthread.php?t=41817)

epage 2010-02-06 17:55

Re: [Announce] The One Ring
 
Quote:

Originally Posted by les_garten (Post 513328)
A lot of them do. A LOT of them, have a LOT of phone numbers.

I do not think I can auto-merge them. I also don't specialize the names for what the phone type is (Cell, land line, etc) because of concern on how manual merging will respond (having to manually resolve every name, ick).

You can disable contacts through the "Advanced" account settings now (and in more than one way ;) ). System contacts still aren't working.

So with those off the table (unless you feel very strong about it) what do you think would be a good option?

fms 2010-02-06 17:56

Re: [Announce] The One Ring
 
Apparently written in Python. Causes the whole Python to be installed (had to use shell to weed it all out after uninstalling The One Ring). The plugin itself did not work for me.

epage 2010-02-06 18:03

Re: [Announce] The One Ring
 
Quote:

Originally Posted by fms (Post 513335)
Apparently written in Python. Causes the whole Python to be installed (had to use shell to weed it all out after uninstalling The One Ring).

And not everyone minds using Python applications. Its listed in the deps for those who care.

I thought HAM was suppose to auto-remove dependencies when uninstalling an application?

Quote:

Originally Posted by fms (Post 513335)
The plugin itself did not work for me.

What version of Maemo were you using? What version of The One Ring? In what way did it not work?

les_garten 2010-02-06 18:03

Re: [Announce] The One Ring
 
Quote:

Originally Posted by epage (Post 513329)
Duplicate names or duplicate names and numbers? I do create a separate contact per number and don't modify the name so it is expected for there to be duplicates in that way.

I think once back before 0.7 I saw on my n8x0 multiple GV contact lists. I've never seen it since.

I looked a little closer

1) Lots(Hundreds) of numbers with no names that are not normally there.
2) Some Contacts are doubled, some tripled, some quads, etc
3) Some are not doubled at all.

I'm not sure how it figures out what to do.

epage 2010-02-06 18:08

Re: [Announce] The One Ring
 
Quote:

Originally Posted by les_garten (Post 513340)
I looked a little closer

1) Lots(Hundreds) of numbers with no names that are not normally there.
2) Some Contacts are doubled, some tripled, some quads, etc
3) Some are not doubled at all.

I'm not sure how it figures out what to do.

Are you referring to the "doubled contacts" as in their names are doubled or their name and number?

Google tends to keep data around for all you communicate with. The ones not in the contact list are treated as one with an ID of "0". I filter them out by that ID. GV might have changed, breaking this (again, Google rolls out updates gradually so it could be a while before I see this issue). Once we get a better picture on the other issue in case they are related, I could add a filter for blank names.

les_garten 2010-02-06 18:13

Re: [Announce] The One Ring
 
Quote:

Originally Posted by epage (Post 513345)
Are you referring to the "doubled contacts" as in their names are doubled or their name and number?

Google tends to keep data around for all you communicate with. The ones not in the contact list are treated as one with an ID of "0". I filter them out by that ID. GV might have changed, breaking this (again, Google rolls out updates gradually so it could be a while before I see this issue). Once we get a better picture on the other issue in case they are related, I could add a filter for blank names.

OK, Just looked close at one with three entries

1 Entry is the original
1 Entry only GV with a phone # and name
1 Entry only GV with a second number and name

The entries with only numbers, no names are who knows what. They just showed up and if I disable GV, they're gone. They may be normally parsed by Company name or another field. But there are hundreds of them.

les_garten 2010-02-06 18:14

Re: [Announce] The One Ring
 
In an ideal world, I would prefer only my system contacts to be used. And no entries replicated or GV'd.

epage 2010-02-06 18:16

Re: [Announce] The One Ring
 
Quote:

Originally Posted by les_garten (Post 513350)
In an ideal world, I would prefer only my system contacts to be used. And no entries replicated or GV'd.

As I said, I've made it so you can disable GV contacts but I do not have system contacts working. That would be ideal. I was interested in what would help improve the situation in the short term.

epage 2010-02-06 18:24

Re: [Announce] The One Ring
 
Quote:

Originally Posted by les_garten (Post 513349)
OK, Just looked close at one with three entries

1 Entry is the original
1 Entry only GV with a phone # and name
1 Entry only GV with a second number and name

Sounds like expected behavior when GV contacts are enabled

Quote:

Originally Posted by les_garten (Post 513349)
The entries with only numbers, no names are who knows what. They just showed up and if I disable GV, they're gone. They may be normally parsed by Company name or another field. But there are hundreds of them.

Yea, I'm concerned Google changed something

We could get a better picture of this by running the following program

Code:

#!/usr/bin/python

import sys
sys.path.insert(0, "/usr/lib/theonering")
import logging
import pprint

import gvoice.backend as backend
import gvoice.addressbook as abook


def print_contacts():
        logging.basicConfig(level=logging.DEBUG)

        args = sys.argv
        username = args[1]
        password = args[2]

        b = backend.GVoiceBackend()
        b.login(username, password)
        assert b.is_authed()

        book = abook.Addressbook(b)
        book.update()
        for number in book.get_numbers():
                pprint.pprint((number, book.get_contact_name(number), book.get_phone_type(number), book.is_blocked(number)))


def print_blank_names():
        logging.basicConfig(level=logging.DEBUG)

        args = sys.argv
        username = args[1]
        password = args[2]

        b = backend.GVoiceBackend()
        b.login(username, password)
        assert b.is_authed()

        book = abook.Addressbook(b)
        book.update()
        for number in book.get_numbers():
                if not book.get_contact_name(number):
                        pprint.pprint(book._numbers[number])


if __name__ == "__main__":
        #print_contacts()
        print_blank_names()

This will print out every number of yours and the associated information. Its a lot to look through but we can compare what happens when the names are blank

So save the file, and run it
Code:

python FILE_NAME USERNAME PASSWORD

les_garten 2010-02-06 18:32

Re: [Announce] The One Ring
 
Quote:

Originally Posted by epage (Post 513351)
As I said, I've made it so you can disable GV contacts but I do not have system contacts working. That would be ideal. I was interested in what would help improve the situation in the short term.

OK,

So I go in and disable GV contacts and disable GV

The entries go away

I restart GV with GV contacts disabled and they come back.

?


All times are GMT. The time now is 15:25.

vBulletin® Version 3.8.8