[xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
Hello, I develop a macro which display object attached to the current page. Here summary of my code: {{goovy}} def topic = doc.getObject(ActivityReport.TopicClass, Integer.valueOf(xcontext.macro.params.id)) println |+doc.displayPrettyName(topic, title)+|+topic.get(title) println

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Marius Dumitru Florea
Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here summary of my code: {{goovy}} def topic = doc.getObject(ActivityReport.TopicClass, Integer.valueOf(xcontext.macro.params.id)) println

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
Hi Marius, 2010/10/26 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here summary of my code: {{goovy}} def topic =

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Anca Luca
On 10/26/2010 12:28 PM, Marius Dumitru Florea wrote: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here summary of my code: {{goovy}} def topic = doc.getObject(ActivityReport.TopicClass,

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Anca Luca lu...@xwiki.com: On 10/26/2010 12:28 PM, Marius Dumitru Florea wrote: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here summary of my code: {{goovy}} def topic =

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Marius Dumitru Florea
On 10/26/2010 03:38 PM, Arnaud bourree wrote: Hi Marius, 2010/10/26 Marius Dumitru Floreamariusdumitru.flo...@xwiki.com: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here summary of my code:

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com: On 10/26/2010 03:38 PM, Arnaud bourree wrote: Hi Marius, 2010/10/26 Marius Dumitru Floreamariusdumitru.flo...@xwiki.com: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Arnaud bourree
2010/10/26 Arnaud bourree arnaud.bour...@gmail.com: 2010/10/26 Anca Luca lu...@xwiki.com: On 10/26/2010 12:28 PM, Marius Dumitru Florea wrote: Hi Arnaud, On 10/26/2010 12:38 PM, Arnaud bourree wrote: Hello, I develop a macro which display object attached to the current page. Here

Re: [xwiki-users] accessing to document running macro

2010-10-26 Thread Ludovic Dubost
Here is a trick {{velocity}} #set($ok = $context.context.put(mydoc, $doc)) {{/velocity}} {{groovy}} println xcontext.mydoc {{/groovy}} Ludovic Le 26/10/10 16:57, Arnaud bourree a écrit : 2010/10/26 Arnaud bourreearnaud.bour...@gmail.com: 2010/10/26 Anca Lucalu...@xwiki.com: On 10/26/2010