On Sun, Mar 23, 2008 at 7:06 PM, Luke Closs <[EMAIL PROTECTED]> wrote: > On 23-Mar-08, at 3:03 AM, Tomeu Vizoso wrote: > > thought I already had suggested this a long time ago, but anyway: > > > > - Create a XPCOM service in JS that exposes the spreadsheet > > functionality implemented in JS. > > > > - Create another XPCOM service in python that exposes the needed Sugar > > functionality. > > > > Shouldn't this allow you to integrate SocialCalc in any way you wish? > > Creating these two components shouldn't be too hard. Please feel free > > to ask in this mailing list any doubts you have. > > > > Example of JS service: > > > http://dev.laptop.org/git?p=sugar;a=tree;f=browser/components/sessionstore;h=8f894b116ad745b0f7bc7c89e4787c89e60a9eb2;hb=309ddec8b769af42f577229bc5e3278c0328f1c4 > > Thank you very much for this link, it's exactly the kind of example I > was looking for. I may have a followup question or two.
Forgot to mention that perhaps we'll need to add to hulahop a function for setting the dir from which the components need to be loaded (probably a subdirectory inside the activity bundle). Should be quite easy. Tomeu _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel