[xwiki-users] Problem to give a name to a page with Class

2010-10-24 Thread Pidoux75
Hello, Infos: I've a class to create some services (Prestations) with (at this time) 3 fields: name, town and country. They are created with a name for the doc, like MyService01, MyService02, etc (for the tests) Second part, there is another class used to evaluate each service. The system needed

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Sergiu Dumitriu
On 10/24/2010 12:46 AM, Eugen Colesnicov wrote: > > I tried redirecting in a scheduler script. I wrote: > {{groovy}} > response.sendRedirect(xwiki.getURL("ETVCCorrespondenceCode.CronJobProgrammingCode")); > {{/groovy}} You can't redirect a scheduled job. Redirects affect HTTP responses only, and

Re: [xwiki-users] Problem to give a name to a page with Class

2010-10-24 Thread Pidoux75
Marf ;) Forgot my last post, I just forgot to put a hidden field in my second form... -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-to-give-a-name-to-a-page-with-Class-tp5667152p5667191.html Sent from the XWiki- Users mailing list archive at Nabble.com. __

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Eugen Colesnicov
Thanks Sergiu! But can I use Paul Libbrecht advise? >call the web page from groovy >new java.net.URL("blablalba").getContent() Thanks beforehand! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Using-Scheduler-issues-groovy-questions-tp5666438p5667271.html Sent fro

Re: [xwiki-users] using XWQL with additional search criterias by dates

2010-10-24 Thread [Ricardo Rodriguez] eBioTIC.
Hi! Eugen Colesnicov wrote: > I checked this example and your script - it is not correct, because you > compare separately year, month and day of document with current date - year, > month and day-100. But if, for example now is 02 january, your script give > uncorrect result, becase I also should

Re: [xwiki-users] using XWQL with additional search criterias by dates

2010-10-24 Thread [Ricardo Rodriguez] eBioTIC.
Hi [Ricardo Rodriguez] eBioTIC. wrote: > Hi Eugen, > > Eugen Colesnicov wrote: > >> Hi Sergiu! >> >> I played before with jodatime. It have some problems ... >> For example, I tried to use example script from plugin home page (it can be >> usefull in my situation) and this script doesn't workin

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Sergiu Dumitriu
On 10/24/2010 12:03 PM, Eugen Colesnicov wrote: > > Thanks Sergiu! > > But can I use Paul Libbrecht advise? >> call the web page from groovy >> new java.net.URL("blablalba").getContent() > > Thanks beforehand! > Eugen > Yes, but note that the URL will be fetched without any session information, s

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Paul Libbrecht
On 24 oct. 2010, at 13:54, Sergiu Dumitriu wrote: >>> call the web page from groovy >>> new java.net.URL("blablalba").getContent() >> >> Thanks beforehand! >> Eugen >> > > Yes, but note that the URL will be fetched without any session > information, so if the requested page is private (not vi

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread [Ricardo Rodriguez] eBioTIC.
Hi, Paul Libbrecht wrote: > On 24 oct. 2010, at 13:54, Sergiu Dumitriu wrote: > > call the web page from groovy new java.net.URL("blablalba").getContent() >>> Thanks beforehand! >>> Eugen >>> >>> >> Yes, but note that the URL will be fetched without any session >

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Eugen Colesnicov
Paul Libbrecht wrote: > > > On 24 oct. 2010, at 13:54, Sergiu Dumitriu wrote: > call the web page from groovy new java.net.URL("blablalba").getContent() >>> >>> Thanks beforehand! >>> Eugen >>> >> >> Yes, but note that the URL will be fetched without any session >> information, s

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Thomas Höschele
Could be not a script problem at all. If you test the scheduler via triggering, you need to unschedule, then reschedule, then trigger the job. Don't ask me why but it worked for me. -Ursprüngliche Nachricht- Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von Eugen

Re: [xwiki-users] groups: mailing them

2010-10-24 Thread [Ricardo Rodriguez] eBioTIC.
Hi! Joris Dirks wrote: > I intend to make more use of groups and updating the members on > changes relevant to them by sending them e-mail. > There is a proposal that seek exactly that! http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/SendMailtoWikiUsers I've not followed these projects

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Eugen Colesnicov
Thomas Höschele wrote: > > Could be not a script problem at all. > If you test the scheduler via triggering, you need to unschedule, then > reschedule, then trigger the job. Don't ask me why but it worked for me. > I made like you said - no result. Also I really waiting for scheduled time - al

Re: [xwiki-users] conditional redirect after login

2010-10-24 Thread Gerritjan Koekkoek
Hi, The script works fine; One modification required (#if($counter > 0) ==> #if($counter == 0) But this only works when user login is on homepage, in our use cases there are also other pages where a guest can decide to login Is there a vm script that is always triggered when user does login? Ge

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Eugen Colesnicov
Eugen Colesnicov wrote: > > ... another bad thing - after this (manually triggered or automatically > triggered the job) the CPU for the JAVA process goes to 100%. No any logs > in a jvm or application logs ... - all look like as normal. > I found what is it!!! I am writing groovy code in a jo

Re: [xwiki-users] conditional redirect after login

2010-10-24 Thread [Ricardo Rodriguez] eBioTIC.
Hi, Gerritjan Koekkoek wrote: > Hi, > > The script works fine; > One modification required (#if($counter > 0) ==> #if($counter == 0) > I'm afraid I don't understand the condition yet! :-( Do you want that any user belonging to any group but XWikiAllGroup is redirected to his/her profile? Or

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Paul Libbrecht
On 24 oct. 2010, at 16:29, [Ricardo Rodriguez] eBioTIC. wrote: >> or call http://user:passw...@host:port/xwiki/bin/view/Space/Name >> >> paul >> _ > > It doesn't work for me here. Please, any particular requirement/setting > on the server side? I don't think so. But I note that I'm using

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Paul Libbrecht
Eugen, you said you have a velocity page, say accessible at http://server/xwiki/bin/iview/MyScheduler/Velo what I was telling is that you should be able to get its execution from groovy with new URL("http://server/xwiki/bin/iview/MyScheduler/Velo";).getContent() and, if you needed secure ac

Re: [xwiki-users] Using Scheduler issues (groovy questions)

2010-10-24 Thread Eugen Colesnicov
Paul Libbrecht wrote: > > what I was telling is that you should be able to get its execution from > groovy with > new URL("http://server/xwiki/bin/iview/MyScheduler/Velo";).getContent() > > and, if you needed secure access for that execution you could request > new > URL("http://admin:p...@