On Jan 13, 2008 3:37 PM, Chak Nanga <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've been able to check out/build/run/test the Gadget Server and the
> sample container. However, I have the following questions/comments:
>
> - What is the purpose of the javascript/gadgets dir since the features
> directory has pretty much the same stuff in it (and gets included as
> part of the gadget rendering code)


features/ is where features (which may include javascript files) go.
javascript/ is where core javascript (such as the reference in-memory
container) go. Currently some of the code in features/ is replicated in
javascript/ because we have to fix some dependency issues elsewhere. This
will go away shortly.


>
> - The samplecontainer.html, by default, points to
>
> http://hosting.gmodules.com/ig/gadgets/file/117247905274371511495/caja-clickme.xml
>    - This gadget does not work and genertates several errors
>    - The caja-clickme.xml gadget code has "<Require
> feature="opensocial-samplecontainer"/>" which is confusing. I thinkf
> adding support for <Require feature="opensocial-0.[5|6]"/> instead
> will make it closer to the spec


But this gadget actually does rely on functionality from
opensocial-samplecontainer because it's designed to serve as an example. I
agree that it probably should be using opensocial-0.6 and the container is
what should be running this code, but I believe there are some legitimate
reasons for this not being the case currently (probably because IFPC was not
implemented until very recently, if I had to guess). Whatever the reason for
it, it does look like something that we have the means to fix now, so if
someone wants to improve this I don't see any reason why not.


>    - The caja-clickme.xml gadget code (as expected) has Caja related
> code (instead of the "regular" gadget code). This does not seem like
> the first gadget a beginner should be seeing.
> As a beginner, this is pretty confusing to me since none of the API
> docs talk about Caja and the very first gadget that the
> samplecontainer.html points to is a Caja gadget which neither the
> OpenSocial API/Orkut dev guides talk about.
>
> I think adding support for <Require feature="opensocial"> in the
> Gadget Server and fixing up the samplecontainer.html to include the
> appropriate JS files to support OpenSocial gadgets will make it a bit
> more easy for someone to get the environment up and running for
> hosting basic OpenSocial gadgets (and then move on to hosting caja
> enabled gadgets)


This makes sense to me as well. The Caja gadget should probably have a
separate html file to illustrate how caja gadgets work, and the
samplecontainer.html should include more basic gadgets as reference. Feel
free to open an issue in jira on this.


>
> Thanks
> Chak
>

Reply via email to