lehner at edv-buero-lehner.de
Fri Jul 18 04:06:53 CEST 2008
I'm currently working on a way to get my SQL address database into the
phone and therefore making heavy use of the scripts mentioned here:
Thanks to the contributors so far, here's my part:
- ssh/BT session:
doesn't seem to work, in fact the error message is even yet more
misleading (getContactList with signature 's' and so on).
Instead, the way of the manage-contacts.py script seems to work pretty
well. It simply requires to add the following lines at the start of the
ps = os.popen ('ps auxwwwwe | grep -m 1 DBUS_SESSION_BUS_ADDRESS')
l = ps.read ()
r = re.compile ('DBUS_SESSION_BUS_ADDRESS=(\S+)')
m = r.search (l)
a = m.expand ('\\1')
os.environ ['DBUS_SESSION_BUS_ADDRESS'] = a
I would encourage to update the existing scripts with
this mechanism if it prooves (remove-contacts, manage-contacts worked for
me this way).
In cases it still doesn't work, there's another alternative instead of
using the moko terminal, described here:
I managed to convert vcard fields into proper UTF-8 (from plain ASCII).
But it seems to me that UTF-8 conversion is not well supported with the
basic (python) set-up on the phone. I had to do this on my linux host.
Also, the resulting characters were not correctly displayed in my case
even though contacts import did not complain (any experience here whether
display of e.g. german umlaute works?)
I will post my SQL->phone script next days when it's finished (still
working on extensions like mobile/work/email etc).
More information about the community