The Conversion of the Blog Application to Groovy is taking shape and I currently working on fixing minor issues. Now I run into a strange issue with the Blog Panels where the Panels show up nicely in the applications WebHome where the blog entries are listed as well as when I display a single entry. But when I want to edit a new Blog Entry the Panel fail to be executed because it says I don't have the right to execute it. Strangely enough I had the just beforehand. What I figured out so far is that as soon as I execute a script during 'inline' the test for programming rights fail. When I display the entry (rather editing it) it works perfectly. Is this a bug in XWiki? Beside executing Groovy scripts it also prevents me from accessing certain items like the Message Tool. Cheers - Andy On Sep 17, 2009, at 9:13 AM, Andreas Schaefer wrote:
I figured it out. The reason for my troubles was that the syntax type of the Panel was still set to 1.0. Migrating it to 2.0 did fix the issue.
Cheers - Andy
On Sep 16, 2009, at 7:56 PM, Andreas Schaefer wrote:
I am investigation the possibility to write Panels in Groovy. Unfortunately I am not able to figure out:
- if I XWiki would render Groovy script code by itself and if how ?
- If not can I render a Groovy script form another Groovy script ?
BTW I was stuck for a while when trying to create my own BlogPostTemplate because XWiki would not allow me to run it as Groovy script even if I gave myself programming rights. But when I wrote the BlogPostSheet as Groovy class and loaded it inside the Velocity script of the BlogPostTemplate it worked perfectly. Now I am wondering why I could not execute the Groovy script if I can circumvent this restriction so easily.
Cheers - Andy
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs