Re: [Evolution-hackers] Access Contacts information from Remote Machine with Python

2010-01-04 Thread Milan Crha
Hi,

On Fri, 2009-12-25 at 11:57 +0100, Michael Pilgermann wrote:
 Could anybody please give some advice, whether
 - there is a way to copy the database to another machine by keeping it
 working, or

It should work as long as the Berkeley DB library is compatible with
that used on the older computer. EDS used to use its own copy of it,
but it was dropped in favor of a system libdb.

Here might be some useful information too, I guess.
http://www.go-evolution.org/FAQ#How_can_I_transfer_all_my_Evolution_data_from_an_old_home_directory_to_a_new_home_directory.3F
Nonetheless, playing with internal evolution files is highly
discouraged.

 - how to remotely access the EDS in Python using the proper way??

I've not much idea about python bindings on EDS side, the nearest I know
are some python binding for plugins in evo itself, but it's far away
from what you want.

Here's an example how to open a system address book and read emails from
contacts stored there:
http://git.gnome.org/browse/evolution-data-server/tree/addressbook/tests/ebook/test-ebook.c

Bye,
Milan

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


[Evolution-hackers] Access Contacts information from Remote Machine with Python

2009-12-25 Thread Michael Pilgermann
Dear List Members,

for a PIM synchronization program called PISI, which we mainly develop for the 
Linux Phone Freerunner, I am currently trying to implement Evolution 
connectivity - starting up with the contacts domain.

The basic concept is to run PISI on the mobile phone Freerunner using a network 
connection tunneled over USB (all in place) and access the information from the 
EDS remotely. 
As I could not find a proper way for a remote interface to EDS (nor Python 
bindings for that) I started to access the underlaying Berkeley database for 
the contact information directly. The access is working smoothly on the local 
Desktop machine, where the EDS is running.

However, my solution to copy the file via SSH to the Freerunner; edit the 
database there and copy it back does not seem to work. I read in some forums 
already, that it might not be possible to access information from within a 
Berkeley database when it was removed from its original environment.

Could anybody please give some advice, whether
- there is a way to copy the database to another machine by keeping it working, 
or
- how to remotely access the EDS in Python using the proper way??

Thanks a lot in advance; best
Michael
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers