[Evolution-hackers] Question about contact database content - contact UID

2007-09-28 Thread David Hautbois
Hi
There is no good evolution python bindings to write in Evolution Data 
Server.
I only want to write contacts in the addressbook database directly.

So, I try to access to the addressbook database.
I'm able to read and write in the database, but I've problems to create 
valid contacts.

I just want to know how the UID field is built.

I've search in the libebook sources, but it's very difficult : I don't 
know C.

Thanks for your help.

David.

-- 
http://david.hautbois.free.fr
http://slugplayer.free.fr

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


Re: [Evolution-hackers] Question about contact database content - contact UID

2007-09-28 Thread Ross Burton
On Fri, 2007-09-28 at 19:32 +0200, David Hautbois wrote:
 There is no good evolution python bindings to write in Evolution Data 
 Server.
 I only want to write contacts in the addressbook database directly.
 
 So, I try to access to the addressbook database.
 I'm able to read and write in the database, but I've problems to create 
 valid contacts.
 
 I just want to know how the UID field is built.
 
 I've search in the libebook sources, but it's very difficult : I don't 
 know C.

Have you tried http://www.conduit-project.org/wiki/evolution-python?

You shouldn't access the database directly, because if someone is using
Evolution at the same time you'll corrupt the database.  Also, what if
the user doesn't have a local addressbook but is only using LDAP or
Groupwise?

Anyway, to answer your question, there is no set format.  EDS uses
pas-id-[some number], but the only requirement is that it is a unique
string.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



signature.asc
Description: This is a digitally signed message part
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Question about contact database content - contact UID

2007-09-28 Thread David Hautbois
Ross Burton wrote:
 On Fri, 2007-09-28 at 19:32 +0200, David Hautbois wrote:
   
 There is no good evolution python bindings to write in Evolution Data 
 Server.
 I only want to write contacts in the addressbook database directly.

 So, I try to access to the addressbook database.
 I'm able to read and write in the database, but I've problems to create 
 valid contacts.

 I just want to know how the UID field is built.

 I've search in the libebook sources, but it's very difficult : I don't 
 know C.
 

 Have you tried http://www.conduit-project.org/wiki/evolution-python?

 You shouldn't access the database directly, because if someone is using
 Evolution at the same time you'll corrupt the database.  Also, what if
 the user doesn't have a local addressbook but is only using LDAP or
 Groupwise?

 Anyway, to answer your question, there is no set format.  EDS uses
 pas-id-[some number], but the only requirement is that it is a unique
 string.

 Ross
   
I just tried evolution-python.
But it requires libebook =1.80
And on the Nokia N800, libebook = 1.4.2.1

:-(

Thanks.

David.

-- 
http://david.hautbois.free.fr
http://slugplayer.free.fr

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


Re: [Evolution-hackers] Question about contact database content - contact UID

2007-09-28 Thread Ross Burton
On Fri, 2007-09-28 at 21:30 +0200, David Hautbois wrote:
 I just tried evolution-python.
 But it requires libebook =1.80
 And on the Nokia N800, libebook = 1.4.2.1

The version numbers of libebook on the N800 don't really bare much
resemblance to reality, disable that check and it should work fine.  If
there are any errors they should be trivial to fix.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



signature.asc
Description: This is a digitally signed message part
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers