You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Alejandro Rivero <al...@gmail.com> on 2008/03/20 19:52:10 UTC
gadget container sample: Include links to opensocial-resources?
looking at the directory of samples, I wonder if it could be useful to
add a sampleXXX.html document downloading some test gadgets from the
opensocial-resources code project.
Particularly, of course, coderunner
http://code.google.com/p/opensocial-resources/source/browse/samples/coderunner/trunk/coderunner.xml
but perhaps also woshambo and other demos.
Re: gadget container sample: Include links to opensocial-resources?
Posted by Cassie <do...@google.com>.
Okay, I think it is a tad trivial to deny their use solely because they use
an IG function. Moreover, we already reference gadgets they only use the
legacy apis, the todo gadget, the horoscope gadget etc, so it seems a little
silly.
That said, I fixed the gadget. It no longer uses and ig methods.
So now we can do whatever we like with it.
(Sorry I beat you to it Alejandro - it was just a very simple replacement of
one function name, so I figured I would just commit it. However, any other
contributions you wish to make to the compliance test gadget are very
welcome!)
- Cassie
On Fri, Mar 21, 2008 at 7:45 PM, Kevin Brown <et...@google.com> wrote:
> On Fri, Mar 21, 2008 at 11:31 AM, Alejandro Rivero <al...@gmail.com>
> wrote:
>
> > True, it is features/core/legacy.js but given that this content is
> > also licensed as open source (and included in current shinding
> > development) I, as developer, do not see it as an immediate problem.
> > Probably tickets could/should be raised against any apps relying in
> > legacy.js and people should, at some time, fix it.
>
>
> The issue is that legacy.js is not a part of the spec, and as such nothing
> that is "spec compliant" can rely on it. Shindig has had the advantage of
> having a lot of contributors being familiar with igoogle, but not every
> opensocial deployment has that advantage and fully understands how the
> legacy stuff needs to map anyway
>
> It's *really* bad form to encourage new development to rely on legacy code
> at all. Including legacy.js in Shindig was a decision made for pragmatic
> reasons, but the goal is to eventually eliminate it, and we can't do that
> if
> we actively publish examples that encourage people to use non-standard
> behavior.
>
> If someone fixes the examples to use the standards compliant equivalents
> of
> these libraries, I'll gladly endorse their use, but until that time I'm
> going to keep harping on the maintainers.
>
> --
> ~Kevin
>
Re: gadget container sample: Include links to opensocial-resources?
Posted by Alejandro Rivero <al...@gmail.com>.
2008/3/21, Kevin Brown <et...@google.com>:
> If someone fixes the examples to use the standards compliant equivalents of
> these libraries, I'll gladly endorse their use, but until that time I'm
> going to keep harping on the maintainers.
Actually, to do the substitution could be an useful exercise for a
newbie, so next Monday I will ask someone in my local team
(ibercivis/boinc, in spain) to do a patch with the traslation of
tests/trunk/compliancetests.xml into the standards and submit it asap.
I would not like to cause a distraction in the main development :-(
Alejandro
Re: gadget container sample: Include links to opensocial-resources?
Posted by Kevin Brown <et...@google.com>.
On Fri, Mar 21, 2008 at 11:31 AM, Alejandro Rivero <al...@gmail.com>
wrote:
> True, it is features/core/legacy.js but given that this content is
> also licensed as open source (and included in current shinding
> development) I, as developer, do not see it as an immediate problem.
> Probably tickets could/should be raised against any apps relying in
> legacy.js and people should, at some time, fix it.
The issue is that legacy.js is not a part of the spec, and as such nothing
that is "spec compliant" can rely on it. Shindig has had the advantage of
having a lot of contributors being familiar with igoogle, but not every
opensocial deployment has that advantage and fully understands how the
legacy stuff needs to map anyway
It's *really* bad form to encourage new development to rely on legacy code
at all. Including legacy.js in Shindig was a decision made for pragmatic
reasons, but the goal is to eventually eliminate it, and we can't do that if
we actively publish examples that encourage people to use non-standard
behavior.
If someone fixes the examples to use the standards compliant equivalents of
these libraries, I'll gladly endorse their use, but until that time I'm
going to keep harping on the maintainers.
--
~Kevin
Re: gadget container sample: Include links to opensocial-resources?
Posted by Alejandro Rivero <al...@gmail.com>.
True, it is features/core/legacy.js but given that this content is
also licensed as open source (and included in current shinding
development) I, as developer, do not see it as an immediate problem.
Probably tickets could/should be raised against any apps relying in
legacy.js and people should, at some time, fix it.
On the other hand, the question of legacy surfaces from time to time
in the main list:
http://groups.google.es/group/opensocial-api/browse_thread/thread/a0ab729ec75b03c2/2aec1adb658e0cd0
http://groups.google.es/group/opensocial-api/browse_thread/thread/9cc97a8ad18c230f
etc
2008/3/21, Kevin Brown <et...@google.com>:
> On Fri, Mar 21, 2008 at 5:28 AM, Cassie <do...@google.com> wrote:
>
> > The compliance tests work in the samplecontainer Kevin. They are perfectly
> > fine.
>
>
>
> They work, yes (because we have a legacy mapping) -- but they're *not* spec
> compliant. If you could show me the section of the spec where
> _IG_RegisterOnLoadHandler is defined I'll retract that statement.
>
> --
>
> ~Kevin
>
Re: gadget container sample: Include links to opensocial-resources?
Posted by Kevin Brown <et...@google.com>.
On Fri, Mar 21, 2008 at 5:28 AM, Cassie <do...@google.com> wrote:
> The compliance tests work in the samplecontainer Kevin. They are perfectly
> fine.
They work, yes (because we have a legacy mapping) -- but they're *not* spec
compliant. If you could show me the section of the spec where
_IG_RegisterOnLoadHandler is defined I'll retract that statement.
--
~Kevin
Re: gadget container sample: Include links to opensocial-resources?
Posted by Cassie <do...@google.com>.
The compliance tests work in the samplecontainer Kevin. They are perfectly
fine.
On Thu, Mar 20, 2008 at 11:21 PM, Kevin Brown <et...@google.com> wrote:
> On Thu, Mar 20, 2008 at 1:15 PM, Alejandro Rivero <al...@gmail.com>
> wrote:
>
> > Well, the compliancetests.xml is :-)
>
>
> No, it isn't. This gadget won't even run on many spec compliant gadget
> servers because it relies on all sorts of _IG_ functions which are not in
> the spec.
>
Re: gadget container sample: Include links to opensocial-resources?
Posted by Kevin Brown <et...@google.com>.
On Thu, Mar 20, 2008 at 1:15 PM, Alejandro Rivero <al...@gmail.com>
wrote:
> Well, the compliancetests.xml is :-)
No, it isn't. This gadget won't even run on many spec compliant gadget
servers because it relies on all sorts of _IG_ functions which are not in
the spec.
Re: gadget container sample: Include links to opensocial-resources?
Posted by Arne Roomann-Kurrik <ku...@google.com>.
I'm impressed - I just needed one minor tweak and the samplecontainer runs
CodeRunner fine now, even with saving and loading data.
~Arne
On Thu, Mar 20, 2008 at 4:00 PM, Arne Roomann-Kurrik <ku...@google.com>
wrote:
> On Thu, Mar 20, 2008 at 3:12 PM, Alejandro Rivero <al...@gmail.com>
> wrote:
>
> > > Here you can see in my server (if it online) both the rendering of
> > > trunk and stable
> > >
> > >
> > http://modulos.ibercivis.es:8080/gadgets/files/container/sample-OSresources.html
> > >
> > > Perhaps if the developer knows that it is being linked in shinding,
> > > s/he will put some attention about compliance.
> >
> >
> > Well, I see the developer was hearing! The version I was calling
> > stable has passed to "deprecated", and the trunk version works nice.
>
>
> Haha, I had been meaning to update opensocial-resources for a while, but
> never got around to it. This thread was the kick in the pants I needed ;)
>
>
> > (on my side, I have edited my sample page so now the Owner and Viewer
> > are set and the tests score 9/9 and 2/2 as expected :-)
> >
>
> ~Arne
>
Re: gadget container sample: Include links to opensocial-resources?
Posted by Arne Roomann-Kurrik <ku...@google.com>.
On Thu, Mar 20, 2008 at 3:12 PM, Alejandro Rivero <al...@gmail.com>
wrote:
> > Here you can see in my server (if it online) both the rendering of
> > trunk and stable
> >
> >
> http://modulos.ibercivis.es:8080/gadgets/files/container/sample-OSresources.html
> >
> > Perhaps if the developer knows that it is being linked in shinding,
> > s/he will put some attention about compliance.
>
>
> Well, I see the developer was hearing! The version I was calling
> stable has passed to "deprecated", and the trunk version works nice.
Haha, I had been meaning to update opensocial-resources for a while, but
never got around to it. This thread was the kick in the pants I needed ;)
> (on my side, I have edited my sample page so now the Owner and Viewer
> are set and the tests score 9/9 and 2/2 as expected :-)
>
~Arne
Re: gadget container sample: Include links to opensocial-resources?
Posted by Alejandro Rivero <al...@gmail.com>.
> Here you can see in my server (if it online) both the rendering of
> trunk and stable
>
> http://modulos.ibercivis.es:8080/gadgets/files/container/sample-OSresources.html
>
> Perhaps if the developer knows that it is being linked in shinding,
> s/he will put some attention about compliance.
Well, I see the developer was hearing! The version I was calling
stable has passed to "deprecated", and the trunk version works nice.
(on my side, I have edited my sample page so now the Owner and Viewer
are set and the tests score 9/9 and 2/2 as expected :-)
Re: gadget container sample: Include links to opensocial-resources?
Posted by Alejandro Rivero <al...@gmail.com>.
Well, the compliancetests.xml is :-)
And coderunner is very promising. The stable version works
http://modulos.ibercivis.es:8080/gadgets/ifr?url=http://graargh.returnstrue.com/coderunner/0.7/coderunner.xml
but the trunk fails to format right when incorporated to the page.
Here you can see in my server (if it online) both the rendering of
trunk and stable
http://modulos.ibercivis.es:8080/gadgets/files/container/sample-OSresources.html
Perhaps if the developer knows that it is being linked in shinding,
s/he will put some attention about compliance.
Alejandro
2008/3/20, Kevin Brown <et...@google.com>:
> Most of those gadgets aren't even compliant with the spec yet -- someone
> should address that issue first.
>
> On Thu, Mar 20, 2008 at 11:52 AM, Alejandro Rivero <al...@gmail.com>
> wrote:
>
>
> > looking at the directory of samples, I wonder if it could be useful to
> > add a sampleXXX.html document downloading some test gadgets from the
> > opensocial-resources code project.
> >
> > Particularly, of course, coderunner
> >
> >
> > http://code.google.com/p/opensocial-resources/source/browse/samples/coderunner/trunk/coderunner.xml
> >
> > but perhaps also woshambo and other demos.
> >
>
>
>
>
> --
>
> ~Kevin
>
Re: gadget container sample: Include links to opensocial-resources?
Posted by Kevin Brown <et...@google.com>.
Most of those gadgets aren't even compliant with the spec yet -- someone
should address that issue first.
On Thu, Mar 20, 2008 at 11:52 AM, Alejandro Rivero <al...@gmail.com>
wrote:
> looking at the directory of samples, I wonder if it could be useful to
> add a sampleXXX.html document downloading some test gadgets from the
> opensocial-resources code project.
>
> Particularly, of course, coderunner
>
>
> http://code.google.com/p/opensocial-resources/source/browse/samples/coderunner/trunk/coderunner.xml
>
> but perhaps also woshambo and other demos.
>
--
~Kevin