[xwiki-users] Users

2010-02-01 Thread J. Allen Santos
Hi, I was playing with XWiki 1.8.1. I was told that users in a wiki is represented as a page with a certain object - XWikiUsers. I copied one user page from one xwiki instance and then saved it to another xwiki instance so as to register that user to that instance. The user was registered but,

Re: [xwiki-users] Users

2010-02-01 Thread Vincent Massol
Hi, On Feb 1, 2010, at 9:58 AM, J. Allen Santos wrote: Hi, I was playing with XWiki 1.8.1. I was told that users in a wiki is represented as a page with a certain object - XWikiUsers. I copied one user page from one xwiki instance and then saved it to another xwiki instance so as to

[xwiki-users] parseGroovyFromPage() and singleton

2010-02-01 Thread Jeremie BOUSQUET
Hi all, I use method parseGroovyFromPage() to instantiate an object from a Groovy class stored in a page. It works well, but now I would like to forbid multiple executions of this class. To do so, I changed it to be a singleton, setting the constructor as private. Of course, now,

Re: [xwiki-users] parseGroovyFromPage() and singleton

2010-02-01 Thread Vincent Massol
Hi Jeremie, On Feb 1, 2010, at 10:11 AM, Jeremie BOUSQUET wrote: Hi all, I use method parseGroovyFromPage() to instantiate an object from a Groovy class stored in a page. It works well, but now I would like to forbid multiple executions of this class. To do so, I changed it to be a

Re: [xwiki-users] parseGroovyFromPage() and singleton

2010-02-01 Thread Jeremie BOUSQUET
Thanks Vincent, You're right it will be easier through context... Do $context (velocity) and context (groovy) variables refer to the application context or to the session context ? Jeremie 2010/2/1 Vincent Massol vinc...@massol.net Hi Jeremie, On Feb 1, 2010, at 10:11 AM, Jeremie BOUSQUET

Re: [xwiki-users] parseGroovyFromPage() and singleton

2010-02-01 Thread Thomas Mortagne
On Mon, Feb 1, 2010 at 10:41, Jeremie BOUSQUET jeremie.bousq...@gmail.com wrote: Thanks Vincent, You're right it will be easier through context... Do $context (velocity) and context (groovy) variables refer to the application context or to the session context ? No, and even $context in

Re: [xwiki-users] parseGroovyFromPage() and singleton

2010-02-01 Thread Sergiu Dumitriu
On 02/01/2010 10:41 AM, Jeremie BOUSQUET wrote: Thanks Vincent, You're right it will be easier through context... Do $context (velocity) and context (groovy) variables refer to the application context or to the session context ? Neither, it's a custom context valid for one request. You can

Re: [xwiki-users] How to put an image as panel background ?

2010-02-01 Thread Dilipkumar Jadhav
Hello there, If you would simply like to display an image in your panel background follow these simple steps: 1. Create the Panel from the Panels.WebHome Page (Let's say, the Panel is called test image) 2. Attach an image/logo of your choice to this Page. (Assume, the image is called img.jpg) 3.

Re: [xwiki-users] Programmatically delete documents without putting them in recycle bin

2010-02-01 Thread Jeremie BOUSQUET
To be clearer, I know that I could do this by executing appropriate SQL delete requests, but it's ugly and I wanted to know if some internal API is able to do so. 2010/2/1 Jeremie BOUSQUET jeremie.bousq...@gmail.com Hi, I'd like to know if there is a way to delete a document (in velocity or

[xwiki-users] Wiki 2.2 milestone 2

2010-02-01 Thread Aplamon
Hi Just updated to latest milestone from 2.04. Overall, it looks nice! A couple of things I noticed: 1. User profile page has a stray {/pre} tag at the end of the page. 2. Our profile pictures are not shown as avatars anymore in places like recent changes in dashboard. 3. When I imported the

[xwiki-users] LDAP (Active Directory ) integration.

2010-02-01 Thread jarjona
Hello: Thanks for XWiki. I think is great software!. I am trying to import the pictures of the users from LDAP. They are currently stored in the AD field named thumbnailPhoto. I cannot find on the XWikiUsers class the field that contains it. Is it somewhere else ? How can I get that

Re: [xwiki-users] Wiki 2.2 milestone 2

2010-02-01 Thread Vincent Massol
Hi Daniel, On Feb 1, 2010, at 5:29 PM, Aplamon wrote: Hi Just updated to latest milestone from 2.04. Overall, it looks nice! Thanks for the feedback. A couple of things I noticed: 1. User profile page has a stray {/pre} tag at the end of the page. Yep, I've fixed it thanks. 2. Our

Re: [xwiki-users] Wiki 2.2 milestone 2

2010-02-01 Thread Aplamon
Ok, I choose make a new revision of existing documents. I thought importing default pages would not affect that? Daniel From: vmassol [via XWiki] [mailto:ml-node+4495299-208866...@n2.nabble.com] Sent: Monday, February 01, 2010 8:35 AM To: Daniel Johansson

Re: [xwiki-users] LDAP (Active Directory ) integration.

2010-02-01 Thread Thomas Mortagne
Hi, On Mon, Feb 1, 2010 at 17:04, jarj...@technip.com wrote: Hello: Thanks for XWiki.  I think is great software!. I am trying to import the pictures of the users from LDAP.  They are currently stored in the AD field named thumbnailPhoto.  I cannot find on the XWikiUsers class the field

Re: [xwiki-users] Wiki 2.2 milestone 2

2010-02-01 Thread Vincent Massol
On Feb 1, 2010, at 5:42 PM, Aplamon wrote: Ok, I choose make a new revision of existing documents. I thought importing default pages would not affect that? Not sure what you mean by default pages. But if you choose to create new revisions then the old revisions will still be there (ie

Re: [xwiki-users] LDAP (Active Directory ) integration.

2010-02-01 Thread jarjona
Thanks for the prompt answer. It is actually a binary field in .jpg format stored in the field... I guess some custom development has to be done to import the picture and put it in the db, and then reference it... Juan - Original Message - From: Thomas Mortagne

Re: [xwiki-users] LDAP (Active Directory ) integration.

2010-02-01 Thread Thomas Mortagne
On Mon, Feb 1, 2010 at 20:55, jarj...@technip.com wrote: Thanks for the prompt answer. It is actually a binary field in .jpg format stored in the field... I guess some custom development has to be done to import the picture and put it in the db, and then reference it... Yes this is not

[xwiki-users] Single Page Visit/View Count through Groovy Snippet

2010-02-01 Thread Dilipkumar Jadhav
Hello folks, I was trying to get the visit count for a single Page through the following Groovy Code in Syntax 2.0: {{groovy}} println Total No. Of Visits: ${doc.getCurrentMonthPageStats(view).getVisits()}; {{/groovy}} It looks like it is returning some data for the Page from the start

Re: [xwiki-users] REST services access to spaces tags

2010-02-01 Thread Dilipkumar Jadhav
Hello Fabio friends, Previously I had emailed a possible work around to make sure that XWiki.Guest user does not have access to the list of Spaces in a completely private wiki instance. In the meantime, I was working on a possible resolution to the issue of Tags being publicly accessible to

Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet

2010-02-01 Thread Marius Dumitru Florea
Dilipkumar Jadhav wrote: Hello folks, I was trying to get the visit count for a single Page through the following Groovy Code in Syntax 2.0: {{groovy}} println Total No. Of Visits: ${doc.getCurrentMonthPageStats(view).getVisits()}; {{/groovy}} It looks like it is