Re: Changes to BitPim schema
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <007301c66185$7c75d700$3501a8c0@rogersqyvr14d3> |
> >> 1. Add fields 'speeddial', 'ringtone', and 'wallpaper' to 'emails'
> >>What are the semantics of this?
>
> phonebook[index]['emails']=[{ 'email': <string>, 'type': <string>,
> 'speeddial': <int>, 'ringtone': <string>, 'wallpaper': <string> }, ...]
That isn't semantics :-) Does the phone have an email address
independent of anything else?
> >> { 'entry': string of names, numbers separated by '\x00\x00'
> >That should be a standard python list.
> It should, though I wasn't quite sure the database would take it
Did you try? And if it can't the database should be fixed, not
mangling the data.
> >Also what happens if two people have the same name?
>
> The mail list items are either phone numbers and/or email addresses.
You said 'string of names'. Do they reference contacts on the
phone? eg if I have a contact of John Smith with number 1234567890
and the list has 1234567890 in it and then on the phone I change
John Smith's number, does the list change as well?
> >It sounds like this should be a list of references to contact entry
> >ids.
>
> It is a list of speed dials (index) of the phone numbers/email
> addresses of the mail list.
Then it really does sound like we should use references. If we
import into BitPim, change details for the contact and export
back to the phone, then the right thing should happen.
Roger
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642