Hi,

On Sun, Aug 17, 2008 at 20:52, Dr J A Gow <[EMAIL PROTECTED]> wrote:
> Hmm, I'll check this one too. I would be surprised if such a serious
> error in our XML transforms had gone unnoticed for so long.

I looked more closely. Here's appropriate snipplet of the log:
008-08-17 19:32:33,808 DEBUG engine.airsync.AirsyncServer :
_ProcessSync: converting item to airsync, source is
<?xml version="1.0" encoding="utf-8"?>
<contact>
  <FormattedName>
    <Content>Test2</Content>
  </FormattedName>
  <Name>
    <FirstName>Test2</FirstName>
  </Name>
  <Telephone>
    <Content>501123456</Content>
    <Type>VOICE</Type>
  </Telephone>
</contact>

2008-08-17 19:32:33,808 DEBUG engine.airsync.AirsyncServer :
_ProcessSync: converting item to airsync, result is
<?xml version="1.0" encoding="utf-8"?>
<AS:ApplicationData
xmlns:AS="http://synce.org/formats/airsync_wm5/airsync";
xmlns:C1="http://synce.org/formats/airsync_wm5/contacts";
xmlns:C2="http://synce.org/formats/airsync_wm5/contacts2";>
  <C1:FileAs>Test2</C1:FileAs>
  <C1:FirstName>Test2</C1:FirstName>
[...]

Number is not propagated to this airsync format. Then I looked at
/usr/share/pyshared/SyncEngine/formats/contact-to-airsync.xml. What we
have here is handling of:
Telephone[Type='HOME'][Type='FAX']
Telephone[Type='WORK'][Type='FAX']
Telephone[Type='HOME' and Type='VOICE']
Telephone[Type='WORK' and Type='VOICE']
Telephone[Type='CAR']
Telephone[Type='CELL']
Telephone[Type='PAGER']
Telephone[Type='Company']
Telephone[Type='Radio']

IMHO:
 - WORK/HOME without subtype should be treated as VOICE.
 - Telephone[Type='VOICE'] with no other subtype should be mapped for
something. I don't know XML Schema for Contact on WM6 devices but if
there's just what's shown in the log available (ie. no general/default
phone number), I'd suggest map it into C1:MobilePhoneNumber (or using
gui/cli attempt the user interaction to ask for the type).

take care,
pkot
-- 
Pawel Kot

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to