[Gpe-list] gpesyncd uids
Robert Chéramy
robert at cheramy.net
Tue Mar 16 20:34:51 CET 2010
Hello,
I'm working on a syncing program for gpe-calendar (todo and contacts
should come next). My aim is to sync (in both ways) gpe-calendar between
my Nokia n810 and my PC.
I plan to use gpesyncd [1], which is just what I need.
The command uidlist will return a list of pairs (uid,
unix_last_modification_time) [2]
The trouble is, the uid which is returned is the sqlite primary key
which is not the "universal" UID returned by get [2].
The internal primary key will never be the same on two devices, so it is
useless for syncing. So I need to modify gpesyncd for my needs, and I
have following options (in order of preference) :
a) modify all commands so it will return the "universal" uid. This may
break other synchronisation scripts (opensync ... but does it work anyway?)
b) add new commands (uidlist2, get2, set2...)
c) add a command line option to switch the behaviour of gpesync between
"sqlite" ID and "uinversal" UID.
What do you think ?
Thanks for your feedback,
Robert
[Notes]
1. http://www.linuxtogo.org/gowiki/gpesyncd
2. An example will be easier to understand :
"uidlist vtodo" returns
116:0
121:0
122:0
123:0
"get vtodo 121" returns
BEGIN:VCALENDAR
PRODID:-//GNOME//NONSGML MIME Directory Library 0.4.2//EN
VERSION:2.0
BEGIN:VTODO
PRIORITY:5
SUMMARY: Code a syncing script
*UID:1248819152.21140 at Nokia-N810-23-14*
DTSTAMP:20100316T191556Z
END:VTODO
END:VCALENDAR
More information about the Gpe-list
mailing list