[sync] horde syncml question

Karsten Fourmont fourmont at gmx.de
Wed Jan 4 09:28:06 PST 2006


Hi,

Beat Binotto wrote:
 > I wanted to ask you it is possible to write my own backend (for an
 > other database) for the horde syncml classes. Is it allowed to
 > use them?

The code is LGPL, so of course you're allowed to use it as long as you 
comply with the LGPL license.

The idea of creating the backend class was very much that: allow people 
  to create backends for other databases than horde.

However it has never been done (at least not that I would know of).

There's not yet an abstract base class for Backend because until now 
there's been no need. However all methods of backend_horde that are not 
marked private have to be implemented by your new backend class. Roughly 
speaking these are

1) methods for retrieving changes/add/deletions done to the data in your 
database
2) methods for importing/replacing/deleting data in(to) your database. 
Format is vcard
3) persistence for sync anchors: store the timestamp of succesful sync 
for usage in subsequent syncs.
4) maintaining a mapping between client IDs and server IDs. (see Syncml 
spec, 
http://www.openmobilealliance.org/tech/affiliates/syncml/syncmlindex.html)
5) other minor stuff (like logging).

 > Somewhere on the horde homepage it is mentioned that the syncml
 > classes
 > need some code cleanup, especially “all horde specific stuff should go
 > into backend.php”, what’s the current state of that?

There are two things (I know of) that are not yet handled by the backend 
but should be moved there:

a) authentication. Currently done by state.phs  isAuthorized() method
b) session handling. Currently done in SyncML.php

These two shouldn't be too much of an issue. Both are very basic.

 > Do You speak german?
Yes I do.
However I'd prefer to have discussions related to the SyncML code on the 
  mailing list so others can participate.

Another backend for the syncml code would be a very great thing. So if 
you want to go for it, you have all the support I can give you 
(explaining things, modifying code as needed). Don't hesitate to ask.

Cheers,
  Karsten


Beat Binotto wrote:
> Hi
> 
>  
> 
> I wanted to ask you it is possible to write my own backend (for an other 
> database) for the horde syncml classes. Is it allowed to use them?
> 
> Somewhere on the horde homepage it is mentioned that the syncml classes 
> need some code cleanup, especially “all horde specific stuff should go 
> into backend.php”, what’s the current state of that?
> 
>  
> 
> Thank you and you are doing a great work on this sync stuff!
> 
>  
> 
> Beat Binotto
> 
>  
> 
> Do You speak german?
> 
>  
> 



More information about the sync mailing list