> result['phonebook']={
> 1073417321:
> {
> I got everything from here in...
The insides are all documented at the top of phonebook.py
> What is this integer, and how do I determine one for a new entry? Also, how
> do I negotiate the serials?
The number is random and has no meaning. When BitPim starts using a database,
it will be the database key. The serials are a property of wherever the record
came from and identify the record should we ever write back again.
Thanks for the pointer to the ASPN article. Things have to be done slightly
differently to work when shipping the code as a binary (you need to include
the generated wrapper for example - it can't be generated on the fly).
The code also needs to be hooked into the import mechanism which goes through
the import dialog which will do the merging correctly.
Has anyone found any good synchronization algorithms?
As far as I can tell, you have to keep or synthesize a transaction log
of changes, and apply them during synchronization.
Roger
|