[xwiki-users] [MYXWIKI] access rights issue

2009-01-26 Thread Yishay Mor
I have a couple of pages on an xwiki I manage on the mywiki farm with a
strange access rights situation:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/Classroomdisplay
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/TryOnceRefineOnce

Although I am an admin of the site, I can't admin these pages. In the rights
editor, I get columns for edit, comment, view and delete but not admin. When
I try to change any values I get an error. I can admin all other similar
pages in the space.

Perhaps one of the myxwiki superusers can restore admin rights on these
pages to the Administrators group?

thanks

- Yishay

___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [MYXWIKI] access rights issue

2009-01-26 Thread Jean-Vincent Drean
On Mon, Jan 26, 2009 at 5:25 PM, Yishay Mor yish...@gmail.com wrote:
 I have a couple of pages on an xwiki I manage on the mywiki farm with a
 strange access rights situation:
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/Classroomdisplay
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/TryOnceRefineOnce

 Although I am an admin of the site, I can't admin these pages. In the rights
 editor, I get columns for edit, comment, view and delete but not admin. When
 I try to change any values I get an error. I can admin all other similar
 pages in the space.

Hi,

There's no admin rights for wiki pages, the admin right can be granted
at the space and wiki levels.

JV.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] insertText() or setDefaultTemplate() ? and how ?

2009-01-26 Thread Jean Couteau
Dear all,

I am trying to create a document from a page, with a template and an 
object attached, but without having to quit the said page.

I generate fine the new document and the object with the values i want 
for the properties, but i did not succeed in putting text in the 
document, i tried using $newDoc.setDefaultTemplate and 
$newDoc.insertText but no success at all.

I post here my piece of code, any hint will be appreciated (after a few 
hours on this, i am a bit lost):

#if($createDomain!=)
  #set($newDoc=$xwiki.createDocument())
  #set($newName=Project.+$newDomainId)
  $newDoc.rename($newName)
  $newDoc.insertText(#includeForm(\XWiki.DomainClassSheet\),)
  #set($newDoc=$xwiki.getDocument($newName))
  #set($newObject=$newDoc.newObject(XWiki.DomainClass))
  $newObject.set(id,$newDomainId)
  $newObject.set(name,$createDomain)
  $newDoc.save()
#end

Jean

-- 

Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Lucene search in classes

2009-01-26 Thread xw...@mauhs.eu
Dear all,

is it possible to search with the lucene search only in a selected class?
e.g. I want to search in the TodoClass for Todo OR Read only in the 
Description class.
Or is there another possibility?


thanks

juergen
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] insertText() or setDefaultTemplate() ? and how ?

2009-01-26 Thread Jean-Vincent Drean
On Mon, Jan 26, 2009 at 6:08 PM, Jean Couteau cout...@codelutin.com wrote:
 Dear all,

 I am trying to create a document from a page, with a template and an
 object attached, but without having to quit the said page.

 I generate fine the new document and the object with the values i want
 for the properties, but i did not succeed in putting text in the
 document, i tried using $newDoc.setDefaultTemplate and
 $newDoc.insertText but no success at all.

All the available methods are described (well, at least listed) in our javadoc.
http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-1.7.1-javadoc.zip/index.html
- Document  void setContent(java.lang.String content)


 I post here my piece of code, any hint will be appreciated (after a few
 hours on this, i am a bit lost):

 #if($createDomain!=)
  #set($newDoc=$xwiki.createDocument())
  #set($newName=Project.+$newDomainId)

You can't manipulate strings like this with velocity, see bellow.

  $newDoc.rename($newName)

You don't have to create then rename a document, see bellow.

  $newDoc.insertText(#includeForm(\XWiki.DomainClassSheet\),)
  #set($newDoc=$xwiki.getDocument($newName))
  #set($newObject=$newDoc.newObject(XWiki.DomainClass))
  $newObject.set(id,$newDomainId)
  $newObject.set(name,$createDomain)
  $newDoc.save()
 #end


You should try:

#if($createDomain!=)
  #set($newDoc=$xwiki.getDocument(Project.${newDomainId}))
  $newDoc.setContent(#includeForm(\XWiki.DomainClassSheet\))
  #set($newObject=$newDoc.newObject(XWiki.DomainClass))
  $newObject.set(id, $newDomainId)
  $newObject.set(name,$createDomain)
  $newDoc.save()
#end

But I'm pretty sure you'll have a problem with the # in setContent,
IIRW I had this problem in the past.
Anyway what you should do here is creating a page with the default
content and object (and call it a template) and copy it in your
script.

#if($createDomain!=)
  $xwiki.copyDocument(Project.ProjectTemplate, Project.${newDomainId})
  #set($domainDoc = $xwiki.Project.${newDomainId})
  #set($domainObj = $newDoc.getObject(XWiki.DomainClass))
  $domainObj.set(id, $newDomainId)
  $domainObj.set(name,$createDomain)
  $domainDoc.save()
#end

JV.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Lucene search in classes

2009-01-26 Thread Jean-Vincent Drean
Hi,

our lucene search provide this feature.
Example1: object:Toto.TodoClass AND foobar
Example2:
http://www.xwiki.org/xwiki/bin/view/Main/LuceneSearch?text=object%3AXWiki.XWikiUsers+AND+dreanx=12y=8

I'll have to delete the 2 useless profiles :)

JV.

On Mon, Jan 26, 2009 at 6:27 PM, xw...@mauhs.eu xw...@mauhs.eu wrote:
 Dear all,

 is it possible to search with the lucene search only in a selected class?
 e.g. I want to search in the TodoClass for Todo OR Read only in the
 Description class.
 Or is there another possibility?


 thanks

 juergen
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Lucene search in classes

2009-01-26 Thread xw...@mauhs.eu
Thank you for your fast response!
I want to search at the TodoClass only in the field Description.
Is this also possible?

thanks

juergen

Jean-Vincent Drean schrieb:
 Hi,

 our lucene search provide this feature.
 Example1: object:Toto.TodoClass AND foobar
 Example2:
 http://www.xwiki.org/xwiki/bin/view/Main/LuceneSearch?text=object%3AXWiki.XWikiUsers+AND+dreanx=12y=8

 I'll have to delete the 2 useless profiles :)

 JV.

 On Mon, Jan 26, 2009 at 6:27 PM, xw...@mauhs.eu xw...@mauhs.eu wrote:
   
 Dear all,

 is it possible to search with the lucene search only in a selected class?
 e.g. I want to search in the TodoClass for Todo OR Read only in the
 Description class.
 Or is there another possibility?


 thanks

 juergen
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
   

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [MYXWIKI] access rights issue

2009-01-26 Thread Yishay Mor
Thanks Jean-Vincent,

Yes, I notice now that I only have the admin column in the space rights
editor, not per page. Still, I can assign access rights for any other page
in this space, but for these two I get:
 an exception occured while trying to save current modifications.
please check if you have the proper rights to preform these modifications.


 Date: Mon, 26 Jan 2009 17:33:32 +0100
 From: Jean-Vincent Drean jean-vinc...@drean.org
 Subject: Re: [xwiki-users] [MYXWIKI] access rights issue
 To: XWiki Users users@xwiki.org
 Message-ID:
c58832290901260833l618f3336k713b10e1b5e8d...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 On Mon, Jan 26, 2009 at 5:25 PM, Yishay Mor yish...@gmail.com wrote:
  I have a couple of pages on an xwiki I manage on the mywiki farm with a
  strange access rights situation:
 
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/Classroomdisplay
 
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/TryOnceRefineOnce
 
  Although I am an admin of the site, I can't admin these pages. In the
 rights
  editor, I get columns for edit, comment, view and delete but not admin.
 When
  I try to change any values I get an error. I can admin all other similar
  pages in the space.

 Hi,

 There's no admin rights for wiki pages, the admin right can be granted
 at the space and wiki levels.

 JV.


 --


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users