IRC Archive for channel #xwiki on 10 January 2017

Last modified by Vincent Massol on 2017/01/10 22:41

<OSIMasson1> has joined #xwiki
06:52 <edvorg> has joined #xwiki
07:11 <LMNTRIX> has joined #xwiki
07:30 <LMNTRIX> has quit
08:03 <OSIMasson1> has quit
08:41 <sorinello__> has joined #xwiki
08:43 <sorinello> has quit
08:48 <sorinello__> has quit
08:49 <sorinello> has joined #xwiki
08:55 <mflorea> has joined #xwiki
08:59 <Aranjedeath> has quit
09:04 <Nemo_bis> has left #xwiki
09:04 <msmeria> has joined #xwiki
09:04 <ImRG> has joined #xwiki
09:27 <tmortagne> has joined #xwiki
09:40 <LMNTRIX> has joined #xwiki
09:40 <LMNTRIX> has quit
09:41 <LMNTRIX> has joined #xwiki
09:45 <gdelhumeau> has joined #xwiki
10:05 <raphael29_> has joined #xwiki
10:34 <evalica> has joined #xwiki
10:35 <Enygma`> has joined #xwiki
10:37 <zzeroo> has quit
10:37 <zzeroo> has joined #xwiki
10:38 <boubou> has quit
10:39 <martinus__> has quit
10:39 <martinus__> has joined #xwiki
10:40 <boubou> has joined #xwiki
10:40 <Slashman> has joined #xwiki
10:46 <tmortagne> [WARN] Restarting myxwiki.org on 8.4.4 on 15 minutes
11:14 <LMNTRIX> has quit
12:19 <edvorg> has quit
12:46 <evalica> has quit
13:04 <evalica> has joined #xwiki
13:12 <tmortagne> has quit
13:43 <tmortagne> has joined #xwiki
14:27 <ol-ow2> has joined #xwiki
14:28 <tmortagne> has quit
14:31 <ol-ow2> Hi, i get this error "Full form statements requires programming right." on this request #set($xwql = "select distinct obj.tags from Document doc, doc.object(XWiki.TagClass) as obj") #set($entries = $services.query.xwql($xwql).setLimit(5).execute()) , any idea is welcome to avoid this kind of error  ?
14:32 <ol-ow2> gdelhumeau: mflorea sdumitriu1
14:33 <gdelhumeau> hi
14:33 <gdelhumeau> ol-ow2: your version is < 7.2?
14:33 <ol-ow2> yes
14:33 <ol-ow2> 6.4
14:47 <tmortagne> has joined #xwiki
14:48 <gdelhumeau> ol-ow2: you need programming rights when you write a query that starts with SELECT
14:48 <gdelhumeau> see: http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HQueryLanguageExamples
14:49 <gdelhumeau> instead you should do: "from Document doc, doc.object(XWiki.TagClass) as obj"
14:49 <gdelhumeau> and then add .addFilter("unique")
14:50 <tmortagne> gdelhumeau: "you need programming rights when you write a query that starts with SELECT" non you don't
14:50 <gdelhumeau> yes you did
14:50 <gdelhumeau> before 7.2
14:50 <tmortagne> there was no version in your message :)
14:50 <gdelhumeau> yes but I've asked for the version of ol-ow2 just before :)
14:51 <tmortagne> sorry, I was not connected before
14:51 <gdelhumeau> so yes, since 7.2, you can use SELECT :)
14:51 <gdelhumeau> indeed tmortagne
14:52 <ol-ow2> ok, many thanks gdelhumeau, i 'll try that
14:56 <ol-ow2> ok that's work, but don't need "Document as doc" bcoz involving error duplicate alias
14:56 <ol-ow2> but thanks any way ;)
15:33 <LMNTRIX> has joined #xwiki
15:52 <LMNTRIX> has quit
16:10 <OSIMasson1> has joined #xwiki
16:13 <ol-ow2> Hi again, gdelhumeau tmortagne .addFilter("unique") give me unique document instead unique TAG (obj.tags )as expected in "select distinct obj.tags from Document doc, doc.object(XWiki.TagClass) as obj"
16:14 <ClemensR> has joined #xwiki
16:14 <gdelhumeau> I though it was what you wanted
16:14 <tmortagne> ol-ow2: "unique" filter only deal with locales
16:14 <tmortagne> it does not make sure you get unique select results whatever you have in the select
16:15 <gdelhumeau> ol-ow2: depending on your need, you can open each document you get and then do a #foreach on the $document.getObjects()
16:18 <ol-ow2> i'm making a main menu with the list of referenced tags . So has you mention, may be the solution is a foreach on the list and get object
16:47 <gdelhumeau> ol-ow2: something like http://playground.xwiki.org/xwiki/bin/view/Panels/TagCloud ?
16:48 <gdelhumeau> actually: http://playground.xwiki.org/xwiki/bin/view/XWiki/TagCloud
16:50 <gdelhumeau> you also have $xwiki.tag (http://platform.xwiki.org/xwiki/bin/view/ScriptingDocumentation/?url=http:%2F%2Fnexus.xwiki.org%2Fnexus%2Fservice%2Flocal%2Frepositories%2Fpublic%2Farchive%2Forg%2Fxwiki%2Fplatform%2Fxwiki-platform-tag-api%2F8.2.1%2Fxwiki-platform-tag-api-8.2.1-javadoc.jar%2F!%2Fcom%2Fxpn%2Fxwiki%2Fplugin%2Ftag%2FTagPluginApi.html)
16:59 <ol-ow2> yes something like that gdelhumeau, but embed in VM file
16:59 <gdelhumeau> I mean maybe you can re-use $xwiki.tags instead of doing your own requests
17:05 <ol-ow2> yes ! that's exactly that i need gdelhumeau many thanks !
17:05 <ol-ow2> perfect ! :D
17:18 <vmassol> has joined #xwiki
17:18 <vmassol> ouch just noticed I was not connected!
17:18 <vmassol> sorry about that, hope nobody tried to reach me here ;)
17:34 <LMNTRIX> has joined #xwiki
17:38 <edvorg> has joined #xwiki
17:52 <tmortagne> has quit
17:52 <tmortagne> has joined #xwiki
17:52 <tmortagne> has quit
17:53 <tmortagne> has joined #xwiki
17:53 <tmortagne> has quit
17:53 <ImRG> has quit
17:54 <LMNTRIX> has quit
17:56 <ClemensR> has quit
18:01 <LMNTRIX> has joined #xwiki
18:06 <LMNTRIX> has quit
18:07 <LMNTRIX> has joined #xwiki
18:10 <edvorg> has quit
18:13 <LMNTRIX> has quit
18:38 <msmeria> has quit
18:40 <gdelhumeau> has quit
18:59 <mflorea> has quit
19:10 <ol-ow2> has quit
19:26 <raphael29_> has quit
20:20 <Enygma`> has quit
20:24 <Slashman> has quit
20:24 <woshilapin> has quit
20:27 <woshilapin> has joined #xwiki
20:27 <woshilap1n> has joined #xwiki
21:28 <evalica> has quit
21:29 <evalica> has joined #xwiki
21:29 <evalica> has quit
22:07 <fca> has joined #xwiki
22:08 <fcharton> has quit
22:41 <vmassol> has quit

Get Connected