Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Stefan Bernsdorf
Thomas, it seems it has nothing to do with my context. I tried to initialize my context with the xcontextProvider. It failed again. Instead I checked the source code of AbstractDataMigrationManager.getXWikiContext which is shown in the stack trace and it found this: protected XWikiContext

Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Thomas Mortagne
On Thu, Nov 20, 2014 at 10:45 PM, Stefan Bernsdorf wrote: > > Thomas, > thanks. I managed to build my thread as an XWiki Job and also managed to add > it to the JobExecutor. > However, my initial problem still persists. > I am not able to add an attachment to a document in this job. > Find the sta

Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Stefan Bernsdorf
Thomas, thanks. I managed to build my thread as an XWiki Job and also managed to add it to the JobExecutor. However, my initial problem still persists. I am not able to add an attachment to a document in this job. Find the stack trace below. Looking at the source of XWikiHibernateBaseStore tel

Re: [xwiki-users] Xwiki encoding for french language

2014-11-20 Thread Paul Libbrecht
Once that database is adjusted, you can even get URLs with accents which is rather cool I feel. > The database containing XWiki need to use utf8_bin MySQL encoding, you > don't need to change MySQL server default encoding. But it's not just > a configuration, you have to convert the existing tabl

Re: [xwiki-users] define a class for multiple documents

2014-11-20 Thread Thomas Mortagne
On Thu, Nov 20, 2014 at 10:42 AM, Adrien Moi wrote: > Hello, > I have little question : I would like to define a class in a groovy macro in > a document, create an instances of this class on another document and then > access this instance on the first document. Is that possible to do? > > It wo

Re: [xwiki-users] Sorting Documents by Arbitrary Dates on XWiki Dashboards

2014-11-20 Thread vinc...@massol.net
  On 20 Nov 2014 at 10:45:19, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: > Hi Brett, > > On 19 Nov 2014 at 18:25:26, Brett Gersekowski > (bgersekow...@windmobile.ca(mailto:bgersekow...@windmobile.ca)) wrote: > > > I'm in the process of transferring a reason

Re: [xwiki-users] Sorting Documents by Arbitrary Dates on XWiki Dashboards

2014-11-20 Thread vinc...@massol.net
Hi Brett, On 19 Nov 2014 at 18:25:26, Brett Gersekowski (bgersekow...@windmobile.ca(mailto:bgersekow...@windmobile.ca)) wrote: > I'm in the process of transferring a reasonable number of "Tip of the Day" > articles that we've previously distributed by email to store on the Wiki. > Ideally, I'd

[xwiki-users] define a class for multiple documents

2014-11-20 Thread Adrien Moi
Hello, I have little question : I would like to define a class in a groovy macro in a document, create an instances of this class on another document and then access this instance on the first document. Is that possible to do? It would kinda look like this: First doc (Doc1): {{groovy}} public c

Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Thomas Mortagne
Everything in XWiki is based on JobExecutor now so I can assure you it does not wait. Maybe your job is doing something slow in initialize. On Thu, Nov 20, 2014 at 10:24 AM, Stefan Bernsdorf wrote: > > Thomas, > if I start a job using > jobExecutor.execute("antjob", req); > it waits until the job

Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Stefan Bernsdorf
Thomas, if I start a job using jobExecutor.execute("antjob", req); it waits until the job is finished. Am 20.11.2014 09:44, schrieb Thomas Mortagne: As indicated in the javadoc of JobExecutor all jobs are executed asychronously. You actually need to use Job#join when you want to wait. On Thu,

Re: [xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Thomas Mortagne
As indicated in the javadoc of JobExecutor all jobs are executed asychronously. You actually need to use Job#join when you want to wait. On Thu, Nov 20, 2014 at 9:38 AM, Stefan Bernsdorf wrote: > Hi, > I have seen that the jobManager is deprecated since 6.1. > But how would I schedule a job and r

[xwiki-users] JobManager vs JobExecutor

2014-11-20 Thread Stefan Bernsdorf
Hi, I have seen that the jobManager is deprecated since 6.1. But how would I schedule a job and return immediately using the jobExecutor? (Using the jobManager it would be something like : Job job = jobManager.addJob("jobtype", request)) Thanks , Stefan. ___

Re: [xwiki-users] Xwiki encoding for french language

2014-11-20 Thread Thomas Mortagne
On Thu, Nov 20, 2014 at 9:15 AM, Mike Migale wrote: > Hello everyone, > > I recently tried to insert french language characters (é, è, à) in > xwiki.atc.ch for: > 1. Validation Email content > 2. Confirmation Email content > (under Home>Administer Wiki>Users and Groups>Registration) > > but when

[xwiki-users] Xwiki encoding for french language

2014-11-20 Thread Mike Migale
Hello everyone, I recently tried to insert french language characters (é, è, à) in xwiki.atc.ch for: 1. Validation Email content 2. Confirmation Email content (under Home>Administer Wiki>Users and Groups>Registration) but when we register, we get the above mentioned characters as "?" in the