Re: [xwiki-users] [MYXWIKI] access rights issue
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 > Subject: Re: [xwiki-users] [MYXWIKI] access rights issue > To: XWiki Users > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Jan 26, 2009 at 5:25 PM, Yishay Mor 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
Re: [xwiki-users] Lucene search in classes
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+drean&x=12&y=8 > > I'll have to delete the 2 useless profiles :) > > JV. > > On Mon, Jan 26, 2009 at 6:27 PM, 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] Lucene search in classes
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+drean&x=12&y=8 I'll have to delete the 2 useless profiles :) JV. On Mon, Jan 26, 2009 at 6:27 PM, 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] insertText() or setDefaultTemplate() ? and how ?
On Mon, Jan 26, 2009 at 6:08 PM, Jean Couteau 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
[xwiki-users] Lucene search in classes
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 ?
Hi Jean, Jean Couteau 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. > > 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\")","") See http://tinyurl.com/c743xu . Maybe this will work: $newDoc.setContent("#includeForm(\"XWiki.DomainClassSheet\")") Hope this helps, Marius > #set($newDoc=$xwiki.getDocument($newName)) > #set($newObject=$newDoc.newObject("XWiki.DomainClass")) > $newObject.set("id",$newDomainId) > $newObject.set("name",$createDomain) > $newDoc.save() > #end > > Jean > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] insertText() or setDefaultTemplate() ? and how ?
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
Re: [xwiki-users] [MYXWIKI] access rights issue
On Mon, Jan 26, 2009 at 5:25 PM, Yishay Mor 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
Re: [xwiki-users] HTTP 500 Error : Unable to find Oracle hdm file
Hello, This is the hibernate file that is in the xwiki/WEB-INF folder (not in subfolder classes) false true false 50 5 3 1 1 20 12 20 jdbc:oracle:thin:@doralu01 :1522:od33 xwiki Tkbf_w5s#9 oracle.jdbc.driver.OracleDriver org.hibernate.dialect.Oracle10gDialect com.xpn.xwiki.store.DBCPConnectionProvider 2 2 true 0 I can't find where is the problem. The both XML are in the core jar file. A CLASSPATH problem ? Thank you 2009/1/25 hel-o > > Hi, > > could be an error in your hibernate configuration could you post it. > > If there is no hibernate file in the core, the hibernate file should be in > > WEB-INF/classes > > hel. > > > christophe perinaud wrote: > > > > Hello, > > After installing Xwiki on my linux laptop without any problem, now i try > > to > > install it in my company. We use Websphere 6.1 and Oracle 10 > > When we deploy the standard WAR file (from the xwiki.org website) it > goes > > ok > > but trying to reach the xwiki URL, we got an error message : > > Error 500: javax.servlet.ServletException: com.xpn.xwiki.XWikiException: > > Error number 3 in 0: Could not initialize main XWiki context Wrapped > > Exception: Error number 3001 in 3: Cannot load class > > com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager > > from > > param xwiki.store.migration.manager.class Wrapped Exception: Error number > > 0 > > in 3: Exception while hibernate execute Wrapped Exception: Could not > parse > > mapping document from resource xwiki.oracle.hbm.xml > > The xml file can be found in the core jar but does not seem to be found > by > > the system. > > We tried to put some XML copies in other folders but without success. > > Thank you for your help > > Christophe > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > > - > Helmut Lehner > h...@hel.at > > -- > View this message in context: > http://n2.nabble.com/HTTP-500-Error-%3A-Unable-to-find-Oracle-hdm-file-tp2203973p2213982.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > > ___ > 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
[xwiki-users] [MYXWIKI] access rights issue
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