Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread laurent bernabe
2013/10/3 Manuel Quiñones ma...@laptop.org OK, I suggest you give a try to Dojo and come back later to tell us how it went. Your investigation can be valuable for future activity developers. The only drawback, apart to the one you pointed to me, is the size of Dojo when installing with

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread Manuel Quiñones
2013/10/3 laurent bernabe laurent.bern...@gmail.com: 2013/10/3 Manuel Quiñones ma...@laptop.org OK, I suggest you give a try to Dojo and come back later to tell us how it went. Your investigation can be valuable for future activity developers. The only drawback, apart to the one you

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread laurent bernabe
I understand : as translations are already managed by Pootle, these features packages are not useful for a Sugar Activity. Maybe I should ask to the Dojo help section if other modules has no dependency on these. If they can be safely removed, that will be a great space save :) Regards

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread laurent bernabe
Ok, so I can download the latest version. Regards 2013/10/3 Manuel Quiñones ma...@laptop.org 2013/10/3 laurent bernabe laurent.bern...@gmail.com: 2013/10/3 Manuel Quiñones ma...@laptop.org OK, I suggest you give a try to Dojo and come back later to tell us how it went. Your

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread laurent bernabe
In fact, there should be better in order to save space : in dojo, I've noticed that each library is given in minified version and plain version. So I am trying to build a terminal command which will remove all *.uncompressed.js files. But for now, I am far from being a terminal guru ... I've

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-03 Thread Manuel Quiñones
2013/10/3 laurent bernabe laurent.bern...@gmail.com: 2013/10/3 Manuel Quiñones ma...@laptop.org find . -name '*.uncompressed.js' -exec ls {} \; Change ls for rm if the lookup was good. Thank you, it worked. (I have kept the donwloaded tar.gz). Wich tar.gz? I think you should just do:

[Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread laurent bernabe
Hi, Has anyone tried to use the DojoToolkit in a web activity ? Because, as the documentation says that it should be used in a web server. Otherwise some functionnalities may not be available. So, is using DojoToolkit safe inside a sugar web activity ? Otherwise, I'll look for another javascript

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread Manuel Quiñones
2013/10/2 laurent bernabe laurent.bern...@gmail.com: Hi, Has anyone tried to use the DojoToolkit in a web activity ? Because, as the documentation says that it should be used in a web server. Otherwise some functionnalities may not be available. What do you want to archive? I don't know

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread laurent bernabe
Hi, thanks for your answer. 2013/10/3 Manuel Quiñones ma...@laptop.org What do you want to archive? I don't know Dojo, but acoording to their website there are independient modules that are AMD-ready, so you might be able to use them. See our docs:

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread laurent bernabe
Apologizes, for POO in javascript, I did not want to talk about encapsulation, but about fields visibilty (public/protected/private). I've read the mozilla page link that Manuel gave me, but they don't talk about that OOP feature. And I know that a field declared with 'var' rather than 'this' is

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread Manuel Quiñones
2013/10/2 laurent bernabe laurent.bern...@gmail.com: Apologizes, for POO in javascript, I did not want to talk about encapsulation, but about fields visibilty (public/protected/private). I've read the mozilla page link that Manuel gave me, but they don't talk about that OOP feature. And I

Re: [Sugar-devel] Using the DojoToolkit in a Sugar WebService ?

2013-10-02 Thread Manuel Quiñones
2013/10/2 laurent bernabe laurent.bern...@gmail.com: 2013/10/3 Manuel Quiñones ma...@laptop.org False. A variable declared with 'var' is visible in the object private methods and privileged methods too. This is worth reading: http://javascript.crockford.com/private.html Thanks,