Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Marc Mercer
On Behalf Of Thomas Mortagne > Sent: Thursday, May 26, 2016 12:34 AM > To: XWiki Users > Subject: Re: [xwiki-users] Python macro scripting - available packages? > > And same comment as Vincent, if you find a nice trick please don't > hesitate to share it on > http://extensions.x

Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Sebastian Schafer
...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Thursday, May 26, 2016 12:34 AM To: XWiki Users Subject: Re: [xwiki-users] Python macro scripting - available packages? And same comment as Vincent, if you find a nice trick please don't hesitate to share it on http://extensions.xwiki.org/xwiki/bin

Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
And same comment as Vincent, if you find a nice trick please don't hesitate to share it on http://extensions.xwiki.org/xwiki/bin/view/Extension/Python+Macro On Thu, May 26, 2016 at 9:29 AM, Thomas Mortagne wrote: > If you want to see the embedded modules, they are all

Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
If you want to see the embedded modules, they are all located in the jython-standalone jar (you can open it as a zip) file in /Lib folder. On Thu, May 26, 2016 at 9:27 AM, Thomas Mortagne wrote: > Actually Vincent is talking about the ruby macro. > > The python macro

Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Thomas Mortagne
Actually Vincent is talking about the ruby macro. The python macro implementation is Jython (through JSR223) that you can find on http://jython.org/. Some ideas: It might be enough to just put the egg file of the module you need directly in WEB-INF/lib since Jython is scanning the classpath

Re: [xwiki-users] Python macro scripting - available packages?

2016-05-26 Thread Vincent Massol
Hi Sebastian, > On 26 May 2016, at 02:17, Sebastian Schafer wrote: > > Hi, > I'm trying to import some packages into the Python macro on Xwiki 7.2, and > while standard packages import fine (working with os and re, etc.), some > (like xlrd) don't. > Looking through the

[xwiki-users] Python macro scripting - available packages?

2016-05-25 Thread Sebastian Schafer
Hi, I'm trying to import some packages into the Python macro on Xwiki 7.2, and while standard packages import fine (working with os and re, etc.), some (like xlrd) don't. Looking through the scripting guide and macro documentation I could not figure out how the Python macro actually works. Is