From: Alan P. <api...@ma...> - 2003-04-08 12:35:56
|
Cool! I'll check that out tonight too if I can.... I am on a biz trip now and the firewall is quite secure so I don't know if I'll be able to cvs up. Anyway, here are some comments on your observations: - the phone has a static list of 'labels' to use. The number in front is the corresponding "type" number: 0:Home 1:Home2 2:Office 3:Office2 4:Mobile 5:Mobile2 6:Pager 7:Fax 8:Fax2 9:None I use the type number to set up the mappings off the vCard types. ie, TEL;type=HOME gets mapped to Home, or if there's already a Home, maps to Home2. All additional HOME numbers are dropped in the current code. The same applies down the line. Also, the phone can hold only 5 numbers/contact even though there are 9 labels. So I look for numbers in this order: Home, Office, Mobile, Home2, Office2, Mobile2, Pager, Fax, Fax2 or something like that (I listed these when I uploaded the patch). I think it's a good idea to create a log entry anytime a number is skipped... now that you've got vCard.py in the tree I could add that... let me know if you want me to do that. Alan On Tuesday, April 08, 2003, at 02:20AM, Roger Binns <ro...@ro...> wrote: >> I have uploaded the patch here: > >The code is now in CVS as vcard.py > >It certainly raises some issues. The phone doesn't allow you >to have multiple numbers of the same type (eg three labelled >as 'home'), but it does allow that to be uploaded. I haven't >figured out why yet. There is also a 'none' type. I'm thinking >that the best interface will be one that gives you an import >report afterwards. > >I also need to abstract out the phone specific stuff, and put >field truncation into the phone upload/download code. > >Roger > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >Bitpim-devel mailing list >Bit...@li... >https://lists.sourceforge.net/lists/listinfo/bitpim-devel > > |