[xwiki-users] Lucene serach problem

2010-01-02 Thread Gerritjan Koekkoek
I'm migrating a xwiki from 1.7 to 2.1.1 I've started with a fresh system and have imported the Lucene search pages from the XAR export of 1.7 The statement: #if($lucene) #set($searchresults = $lucene.getSearchResults(${query} $!{reqspace}, $wikinames, $languages,

Re: [xwiki-users] Registered Users

2010-01-02 Thread Arnaud bourree
$xwiki.getDocument('XWiki.'+username) 2010/1/2 J. Allen Q. Santos jqsan...@msn.com: Hi! Given a username, how do I know if a user with that username is already registered? Is there a way to check, say isUserRegistered(username) or User.isUserRegistered()? Thank you very much. -Allen

Re: [xwiki-users] Registered Users

2010-01-02 Thread Caleb James DeLisle
Hi, If you are just trying to determine whether a name is available for a user registration you can use: #set($userName = Admin) #if($xwiki.exists(XWiki.$userName)) Username $userName is not available. #end This method will throw false positives for documents in the XWiki space. eg:

Re: [xwiki-users] Registered Users

2010-01-02 Thread J. Allen Q. Santos
Thanks Arnold and Caleb for your reply. -- From: Caleb James DeLisle calebdeli...@lavabit.com Sent: Sunday, January 03, 2010 12:55 AM To: XWiki Users users@xwiki.org Subject: Re: [xwiki-users] Registered Users Hi, If you are just trying to

Re: [xwiki-users] Registered Users

2010-01-02 Thread J. Allen Q. Santos
I mean, Arnaud. Sorry. Again, thank you. -- From: J. Allen Q. Santos jqsan...@msn.com Sent: Sunday, January 03, 2010 2:50 AM To: XWiki Users users@xwiki.org Subject: Re: [xwiki-users] Registered Users Thanks Arnold and Caleb for your reply.

Re: [xwiki-users] Lucene serach problem

2010-01-02 Thread Gerritjan Koekkoek
Op 2 jan 2010, om 21:13 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 15:49, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: I'm migrating a xwiki from 1.7 to 2.1.1 I've started with a fresh system and have imported the Lucene search pages from the XAR export of

Re: [xwiki-users] Lucene serach problem

2010-01-02 Thread Thomas Mortagne
On Sat, Jan 2, 2010 at 21:42, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Op 2 jan 2010, om 21:13 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 15:49, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: I'm migrating a xwiki from 1.7 to 2.1.1 I've started

Re: [xwiki-users] Lucene serach problem

2010-01-02 Thread Gerritjan Koekkoek
Op 2 jan 2010, om 21:55 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 21:42, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Op 2 jan 2010, om 21:13 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 15:49, Gerritjan Koekkoek

Re: [xwiki-users] Access to Bindings in Python

2010-01-02 Thread Caleb James DeLisle
Hi, I wrote the workaround for getting context/document/wiki access in python. i will be posting as a snippet and reference in scripting howto. {{python}} # This python snippet loads the script engine bindings which are unavailable in jython # because of http://bugs.jython.org/issue1426 # The