Re: Sling JSON format

2008-01-19 Thread Bertrand Delacretaz
Hi Peter, On Jan 19, 2008 9:38 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > ...http://localhost:8080/content.json?maxlevels=999";... seems to indicate that you're running microsling-core. I don't have time to look at this in detail now, but about this: > ...Maybe I can write > the JSON forma

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
Thanks! I'm still a bit confused ab out what goes where here, so I'll probably call stuff by the wrong name for weeks. I'll check it out and see what I can do. Cheers, PS On Jan 19, 2008 9:55 AM, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > Hi Peter, > > On Jan 19, 2008 9:38 AM, Peter Svens

Re: Sling JSON format

2008-01-19 Thread Bertrand Delacretaz
On Jan 19, 2008 9:59 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > ...I'm still a bit confused ab out what goes where here, so I'll > probably call stuff by the wrong name for weeks hmmm...I'm not sure if we are less confused than you are about what is what between Sling and (the two existin

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
OK, that sounds great. I have another, related question though (I just checked out [1], and found the servlet and JsonItemWriter, checking..); If Sling support writing server-side scripts in Rhino, couldn't I just as well write a serve-side javascript which access internal Sling APIs, build the s

Re: Sling JSON format

2008-01-19 Thread Bertrand Delacretaz
On Jan 19, 2008 10:14 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > ...If Sling support writing server-side scripts in Rhino, couldn't I just as > well write a serve-side javascript which access internal Sling APIs, build > the structure, and outputs the correct format?... Sure - just name your

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
WoW! Thanks. :) I half-and-half that you would say that it was theoretically possible, but not on Saturdays :) This, I like. Cheers, PS On Jan 19, 2008 10:18 AM, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: > On Jan 19, 2008 10:14 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > > > ...If Sli

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
Wait - just another question; In most of the tests; esp, erb, et.c. there are magic api references. For instance resource or node, et.c. In the js example there's only writeln's. Is it possible to access system resources from Rhino as well? If so, is there some Java system file which describes wh

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
Argh! Sorry about this. The resource is indeed referenced. My fault. But still, is there some server-side system files which describe which things are accessible from scripts?? Cheers, PS On Jan 19, 2008 10:24 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > Wait - just another question; In most

Re: Sling JSON format

2008-01-19 Thread Felix Meschberger
Hi Peter, All resources available to JSP are also available to scripts, this is not different for JavaScript (Rhino in our case). For example, each script has the following global objects: request - The SlingHttpServletRequest object for the request response - The SlingHttpServletRespons

Re: Sling JSON format

2008-01-19 Thread Peter Svensson
This is great. This info should be on the first page of the "So, you want to become a Sling wizard" page in the Wiki :) Cheers, PS On Jan 19, 2008 3:07 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Hi Peter, > > All resources available to JSP are also available to scripts, this is > not dif

Re: Sling JSON format

2008-01-21 Thread Felix Meschberger
Hi Peter, Not on the first one, but on a page like "Scripting in Sling How-To" or such... Regards Felix Am Samstag, den 19.01.2008, 15:57 +0100 schrieb Peter Svensson: > This is great. This info should be on the first page of the "So, you want to > become a Sling wizard" page in the Wiki :) > >

Re: Sling JSON format

2008-01-22 Thread Lars Trieloff
Hi Felix, would it be possible to give non-committers or even anonymous wiki- editing karma, so we do not just discuss about improving the docs, but can start with it right now? regards, Lars On 21.01.2008, at 11:44, Felix Meschberger wrote: Hi Peter, Not on the first one, but on a page

Re: Sling JSON format

2008-01-22 Thread Bertrand Delacretaz
Hi, On Jan 22, 2008 12:24 PM, Lars Trieloff <[EMAIL PROTECTED]> wrote: > ...would it be possible to give non-committers or even anonymous wiki- > editing karma, so we do not just discuss about improving the docs, but > can start with it right now?... I'm +1 on giving write access to our wiki to p

Re: Sling JSON format

2008-01-22 Thread Lars Trieloff
Hi Betrand, I think the question who can edit the wiki is a more general one and actually I like it the way Cocoon handles it. The Cocoon MoinMoin Wiki has no access control whatsoever and this means that the barrier for contribution is much lower than here in Sling. I know that the Sling w

Re: Sling JSON format

2008-01-22 Thread Bertrand Delacretaz
On Jan 22, 2008 6:22 PM, Lars Trieloff <[EMAIL PROTECTED]> wrote: > ...perhaps we could have something like a scratchpad wiki > space that is completely open and keep access to the main wiki tightly > limited to committers That sounds like a good way to get new contributions and contributors

Re: Sling JSON format

2008-01-22 Thread Lars Trieloff
If possible, do not use MoinMoin, but introduce another Wiki Space in Confluence. This makes it much easier to move content once it is ready to graduate into the "official" documentation. Lars On 22.01.2008, at 21:21, Bertrand Delacretaz wrote: On Jan 22, 2008 6:22 PM, Lars Trieloff <[EMAI

Re: Sling JSON format

2008-01-22 Thread Alexander Klimetschek
+1 As a non-committer with no CLA filed at ASF yet, I find this a *huge* barrier. The idea of a seperate section is good and saves the main website from Spammers. Apart from that an open source software wiki should be a wiki for everyone! Alex Am 22.01.2008 um 18:22 schrieb Lars Trieloff