Discussion:
sync-engine 0.3+ works, but...
Scott Bronson
2007-12-31 02:43:47 UTC
Permalink
After applying the following patch, I managed to get sync-engine svn
working with opensync 0.35. Any chance it could get applied?

The sync doesn't quite work. Names are copied over, phone numbers are
dropped. Is there any way to fix this? How can I figure out why
phone numbers are disappearing? (this is moving from computer -> WM6
phone, I haven't tried phone -> computer)

Thanks,

- Scott



Index: SyncEngine/kernel.py
===================================================================
--- SyncEngine/kernel.py (revision 3135)
+++ SyncEngine/kernel.py (working copy)
@@ -689,7 +689,7 @@
id=self.PshipManager.CreateNewPartnership(name,
sync_items).info.id

if start:
- self.sessions_start()
+ self.StartSessions()

return id

Index: SyncEngine/syncdb.py
===================================================================
--- SyncEngine/syncdb.py (revision 3135)
+++ SyncEngine/syncdb.py (working copy)
@@ -234,7 +234,7 @@
if len(self.localchanges) <= max:
changeset = self.localchanges.items()
else:
- changeset = changeset.items()[:max]
+ changeset = self.localchanges.items()[:max]

return changeset
Dr J A Gow
2007-12-31 11:59:07 UTC
Permalink
Post by Scott Bronson
After applying the following patch, I managed to get sync-engine svn
working with opensync 0.35. Any chance it could get applied?
The sync doesn't quite work. Names are copied over, phone numbers are
dropped. Is there any way to fix this? How can I figure out why
phone numbers are disappearing? (this is moving from computer -> WM6
phone, I haven't tried phone -> computer)
Thanks for the patch - I'll apply and commit this straight away as it
looks like a couple of function names I forgot to change.

With regard to the phone numbers, they won't be synced properly at the
moment. Under certain circumstances there is some ambiguity in the
manner in which Opensync presents the phone numbers (for example the
version I have at the moment can't seem to distinguish between voice and
fax despite there being attributes available in the schema to do so). In
places the output from Opensync doesn't quite follow its own schema!
This will probably change as Opensync 0.3x is experimental. The code in
formats30/contact-to-airsync.xsl to convert phone numbers is also not
quite correct.

Phone->computer will probably be slightly better as we do not have to
attempt to resolve ambiguity in this path - I have successfully synced
phone contacts to Evolution.

John.
Scott Bronson
2008-01-21 17:16:09 UTC
Permalink
Post by Dr J A Gow
With regard to the phone numbers, they won't be synced properly at the
moment. Under certain circumstances there is some ambiguity in the
manner in which Opensync presents the phone numbers (for example the
version I have at the moment can't seem to distinguish between voice and
fax despite there being attributes available in the schema to do so). In
places the output from Opensync doesn't quite follow its own schema!
This will probably change as Opensync 0.3x is experimental. The code in
formats30/contact-to-airsync.xsl to convert phone numbers is also not
quite correct.
Well, that's unfortunate. I understand, though. OpenSync has been
anything but stable.

Do you plan on fixing this soon? Or, does sync-engine have a desired
version of OpenSync (say, v.0.34)? If no to either, then maybe you could
give me a quick paragraph on what needs changing? I have a whole bunch of
phone numbers on my computer that I'd really like to have in my phone and
sync-engine seems like it's pretty close to being able to do that.

Thanks,

- Scott
Dr J A Gow
2008-01-21 20:55:27 UTC
Permalink
Post by Scott Bronson
Well, that's unfortunate. I understand, though. OpenSync has been
anything but stable.
Do you plan on fixing this soon? Or, does sync-engine have a desired
version of OpenSync (say, v.0.34)? If no to either, then maybe you
could give me a quick paragraph on what needs changing? I have a
whole bunch of phone numbers on my computer that I'd really like to
have in my phone and sync-engine seems like it's pretty close to being
able to do that.
At the moment Opensync 0.3x still has ambiguity problems but as far as I
can see they are slowly converging. I am following the development of
Opensync and I will fix up the SynCE plugin as Opensync stabilizes.

If you want stable syncing, then use the latest Opensync 0.2x. This is
fully supported by sync-engine (just use the default
<OpensyncXMLFormat>OS20</OpensyncXMLFormat> stanza in your config.xml.
It works well - I use this version successfully in my production
environment (as problems are found, I try to fix them in a timely
fashion) so it would be better to use this version for now if you want
something that 'just works'.

John.
Ochal Christophe
2008-01-21 21:01:05 UTC
Permalink
Hi,
Post by Dr J A Gow
Post by Scott Bronson
Well, that's unfortunate. I understand, though. OpenSync has been
anything but stable.
Do you plan on fixing this soon? Or, does sync-engine have a desired
version of OpenSync (say, v.0.34)? If no to either, then maybe you
could give me a quick paragraph on what needs changing? I have a
whole bunch of phone numbers on my computer that I'd really like to
have in my phone and sync-engine seems like it's pretty close to being
able to do that.
At the moment Opensync 0.3x still has ambiguity problems but as far as I
can see they are slowly converging. I am following the development of
Opensync and I will fix up the SynCE plugin as Opensync stabilizes.
If you want stable syncing, then use the latest Opensync 0.2x. This is
fully supported by sync-engine (just use the default
<OpensyncXMLFormat>OS20</OpensyncXMLFormat> stanza in your config.xml.
It works well - I use this version successfully in my production
environment (as problems are found, I try to fix them in a timely
fashion) so it would be better to use this version for now if you want
something that 'just works'.
Just to be sure, does this also apply to old WM2003 devices?

Cheers,
Dr J A Gow
2008-01-21 21:36:21 UTC
Permalink
Post by Ochal Christophe
Just to be sure, does this also apply to old WM2003 devices?
Not at the moment, although I am working on adding legacy sync support
to sync-engine.

John.
Ochal Christophe
2008-01-21 22:07:10 UTC
Permalink
Post by Dr J A Gow
Post by Ochal Christophe
Just to be sure, does this also apply to old WM2003 devices?
Not at the moment, although I am working on adding legacy sync support
to sync-engine.
Ah ok, thx for the clarification ;)

Continue reading on narkive:
Loading...