Re: [Evolution-hackers] Funambol sync from evolution
Il giorno gio, 08/01/2009 alle 21.08 -0800, George Farris ha scritto: > On Thu, 2009-01-08 at 23:03 +0100, Stefano Canepa wrote: > > On Wed, 2009-01-07 at 20:22 -0800, George Farris wrote: > > > On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > > > > My suggestion regarding the language would be to check out how easy it > > > > is to write Evolution plugins in C and Python. Pick the one that you > > > > find easier. Python is a nice language. A downside might be that users > > > > of older Evolution releases without that support won't be able to use > > > > your plugin. When was Python support added? > > > > > > > > > > Maybe have a look at Vala > > > > > > http://live.gnome.org/Vala > > > > > > Kind of "best of both worlds", Python/ C > > > > > > Cheers > > > > So you suggest to learn another language? ;-) > > > > Sure why not, it's always good for the brain:-) I did a look at vala. It looks not so difficult. Bye sc -- Stefano Canepa aka sc: s...@linux.it - http://www.stefanocanepa.it Three great virtues of a programmer: laziness, impatience and hubris. Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall) signature.asc Description: Questa è una parte del messaggio firmata digitalmente ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Fri, 2009-01-09 at 00:00 +0100, Stefano Canepa wrote: > On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > > It wouldn't be hard to create and install a libsyncevolution.so which > > contains all the necessary logic to execute a sync. That might be > > easier > > than wrapping a command line tool. On the other hand, Genesis already > > does that quite successfully. > > OK, Patric. I'll checkout syncevolution code ASAP (tomorrow or on > saturday) and starting finding how I to build such a library, this > should be usefull for other projects, too. I should clarify: compiling and installing libsyncevolution.so already works, just use --enable-shared. However, there are some issues with it: * It's an internal helper library installed as lib/syncevolution/libsyncevolution.so.0.0.0, making linking against it harder. * It is unversioned (ABI can change without updating the so number). Other packages are not supposed to link against it right now. * Making the plugin a part of SyncEvolution would avoid these issues, but that leads to another problem for distributing it: currently the precompiled packages are constructed so that they don't depend on a specific Evolution version (search for multiple revisions of libecal/libebook, call functions via dlsym). This might not be feasible with a plugin, so that I'd have to go back to compiling different packages for different Evolution releases - or depend on distributions to do that work. But that is something that we can worry about later - let's get something working first, shall we? ;-) -- Bye, Patrick Ohly -- patrick.o...@gmx.de http://www.estamos.de/ ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Thu, 2009-01-08 at 23:03 +0100, Stefano Canepa wrote: > On Wed, 2009-01-07 at 20:22 -0800, George Farris wrote: > > On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > > > My suggestion regarding the language would be to check out how easy it > > > is to write Evolution plugins in C and Python. Pick the one that you > > > find easier. Python is a nice language. A downside might be that users > > > of older Evolution releases without that support won't be able to use > > > your plugin. When was Python support added? > > > > > > > Maybe have a look at Vala > > > > http://live.gnome.org/Vala > > > > Kind of "best of both worlds", Python/ C > > > > Cheers > > So you suggest to learn another language? ;-) > Sure why not, it's always good for the brain:-) ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > > On user request the plugin will run syncevolution, > > displaing an error message if there is no syncevolution on the > system > > and the log and all messages of syncevolution if there are logs or > > messages. > > It wouldn't be hard to create and install a libsyncevolution.so which > contains all the necessary logic to execute a sync. That might be > easier > than wrapping a command line tool. On the other hand, Genesis already > does that quite successfully. OK, Patric. I'll checkout syncevolution code ASAP (tomorrow or on saturday) and starting finding how I to build such a library, this should be usefull for other projects, too. Bye sc -- Stefano Canepa aka sc: s...@linux.it - http://www.stefanocanepa.it Three great virtues of a programmer: laziness, impatience and hubris. Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall) signature.asc Description: This is a digitally signed message part ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Wed, 2009-01-07 at 20:22 -0800, George Farris wrote: > On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > > My suggestion regarding the language would be to check out how easy it > > is to write Evolution plugins in C and Python. Pick the one that you > > find easier. Python is a nice language. A downside might be that users > > of older Evolution releases without that support won't be able to use > > your plugin. When was Python support added? > > > > Maybe have a look at Vala > > http://live.gnome.org/Vala > > Kind of "best of both worlds", Python/ C > > Cheers So you suggest to learn another language? ;-) Bye sc -- Stefano Canepa aka sc: s...@linux.it - http://www.stefanocanepa.it Three great virtues of a programmer: laziness, impatience and hubris. Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall) signature.asc Description: This is a digitally signed message part ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Wed, 2009-01-07 at 23:20 +0100, Patrick Ohly wrote: > My suggestion regarding the language would be to check out how easy it > is to write Evolution plugins in C and Python. Pick the one that you > find easier. Python is a nice language. A downside might be that users > of older Evolution releases without that support won't be able to use > your plugin. When was Python support added? > Maybe have a look at Vala http://live.gnome.org/Vala Kind of "best of both worlds", Python/ C Cheers ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] Funambol sync from evolution
On Mi, 2009-01-07 at 22:27 +0100, Stefano Canepa wrote: > On user request the plugin will run syncevolution, > displaing an error message if there is no syncevolution on the system > and the log and all messages of syncevolution if there are logs or > messages. It wouldn't be hard to create and install a libsyncevolution.so which contains all the necessary logic to execute a sync. That might be easier than wrapping a command line tool. On the other hand, Genesis already does that quite successfully. > I would like to try to develop it in python as I see that evolution is > now capable of loading plugins written in this language, but it should > be no problem in developing in C. Wich language do you suggest to use? Genesis is written in Python, so you could take that as example for writing a syncevolution command line wrapper. I also started with a Python binding for the relevant SyncEvolution classes that a GUI would have to interact with. This was an experiment to learn about Boost.Python. It showed that this is so easy that finishing it should be a matter of a day perhaps. Want to learn how it was done and perhaps finish it? ;-) Browse the source: https://zeitsenke.de/websvn/listing.php?repname=SyncEvolution&path=%2Fbranches%2Fpython%2F&rev=0&sc=0 Check out: http://zeitsenke.de/svn/SyncEvolution/branches/python/ If you prefer to work with git (easier for external contributors) then I could also provide a git mirror of the SVN repository. My suggestion regarding the language would be to check out how easy it is to write Evolution plugins in C and Python. Pick the one that you find easier. Python is a nice language. A downside might be that users of older Evolution releases without that support won't be able to use your plugin. When was Python support added? -- Bye, Patrick Ohly -- patrick.o...@gmx.de http://www.estamos.de/ ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
[Evolution-hackers] Funambol sync from evolution
Hi all, I'm trying to develop a plugin to run configure and run syncevolution on user request. My idea is to have a plugin like the one that sync with the ipod adding an option on the context menu in calendar and addressbook. On user request the plugin will run syncevolution, displaing an error message if there is no syncevolution on the system and the log and all messages of syncevolution if there are logs or messages. I would like to try to develop it in python as I see that evolution is now capable of loading plugins written in this language, but it should be no problem in developing in C. Wich language do you suggest to use? TIA sc -- Stefano Canepa aka sc: s...@linux.it - http://www.stefanocanepa.it Three great virtues of a programmer: laziness, impatience and hubris. Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall) signature.asc Description: Questa è una parte del messaggio firmata digitalmente ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers