IRC Archive for channel #xwiki on 17 April 2014

Last modified by Vincent Massol on 2014/04/17 23:50

<vmassol> has joined #xwiki
00:16 <abusenius> has quit
00:26 <evalica> has quit
00:56 <vmassol> has quit
01:04 <vmassol> has joined #xwiki
01:04 <vmassol1> has joined #xwiki
01:08 <vmassol> has quit
01:09 <vmassol1> has quit
01:34 <vmassol> has joined #xwiki
01:37 <vmassol1> has joined #xwiki
01:38 <vmassol> has quit
01:46 <vmassol1> has quit
03:22 <tillo> has quit
03:22 <tillo> has joined #xwiki
03:42 <Denis> has quit
04:30 <Denis> has joined #xwiki
06:00 <Denis> has quit
06:36 <vmassol> has joined #xwiki
06:41 <vmassol> has quit
07:01 <DarkKnightCZ> has joined #xwiki
07:09 <xwikibot> has joined #xwiki
07:21 <mflorea> has joined #xwiki
07:28 <DarkKnightCZ> has quit
07:36 <vmassol> has joined #xwiki
07:38 <mflorea> has quit
07:42 <vmassol> has quit
07:47 <vmassol> has joined #xwiki
07:49 <vmassol1> has joined #xwiki
07:49 <vmassol> has quit
07:51 <vmassol> has joined #xwiki
07:51 <vmassol1> has quit
07:59 <vmassol> has quit
08:29 <xwikibot> has quit
08:30 <xwikibot> has joined #xwiki
08:45 <KermitTheFragger> has joined #xwiki
08:45 <DarkKnightCZ> has joined #xwiki
08:48 <DarkKnightCZ> hi, what is the best way to bind parameters to hql query? $services.query.hql("statement where doc.name = :var").bindValue("var", $doc.name").execute() fails, if $doc.name contains unsafe characters (doc name "Lorem ipsum 'dolor'" is binded as "statement where doc.name = 'Lorem ipsum 'dolor''" , which is not correct)
08:52 <cjd> has joined #xwiki
08:57 <DarkKnightCZ> $xwiki.searchDocuments($hql, [$param]); is unsafe too
08:58 <msmeria> has joined #xwiki
08:59 <DarkKnightCZ> oh, my bad, wrong line :)
09:04 <vmassol> has joined #xwiki
09:07 <cjd> 08:57 < DarkKnightCZ> $xwiki.searchDocuments($hql, [$param]); is unsafe too <-- that should be safe as long as $hql is a constant
09:08 <cjd> oh I suppose the $hql is implying that it's not xD
09:10 <DarkKnightCZ> cjd: yup, i've been looking into wrong line :)
09:10 <vmassol> has quit
09:12 <ekarlso> has quit
09:28 <woshilapin> has joined #xwiki
09:45 <mflorea> has joined #xwiki
09:50 <ClemensR> has joined #xwiki
09:59 <gdelhumeau> has joined #xwiki
10:14 <evalica> has joined #xwiki
10:36 <woshilapin> has quit
10:39 <woshilapin> has joined #xwiki
11:05 <evalica> has quit
11:16 <OSIMasson> has quit
11:21 <vmassol> has joined #xwiki
11:28 <Denis> has joined #xwiki
11:32 <ClemensR> If I want to add translations for a macro from xwiki-platform, I just add the keys to the ApplicationResources.properties ? (Even if the macro is in xwiki-rendering, e.g the ContentMacro)
11:41 <gdelhumeau> Guys, if some day we plan to use GIT for our pages history, and we still need a SQL language to perform queries on it, maybe this could help: https://github.com/cloudson/gitql
11:41 <vmassol> ClemensR: macro is in platform or rendering?
11:41 <ClemensR> Content macro is in rendering
11:41 <vmassol> the best is to add ApplicationResources.properties in the JAR of the macro
11:42 <ClemensR> there is also Translation macro in platform missing keys
11:42 <ClemensR> ah ok
11:42 <vmassol> we used to add the macro keys in platform
11:42 <vmassol> but that was before we added support for ApplicationResources.properties in the JAR
11:42 <vmassol> you could send an email proposing that we officially do this from now on too :)
11:42 <vmassol> (since I don't think this was officially discussed)
11:42 <ClemensR> ah, ok, so one  ApplicationResources.properties  per macro (or its *.jar) would be appropriate
11:42 <vmassol> but it seems beftter to me
11:43 <vmassol> yes
11:43 <ClemensR> ok, will send mail to list then
11:43 <vmassol> thanks
11:43 <vmassol> (I'm at a conference in paris ATM, a bit busy ;))
11:43 <vmassol> (till tomorrow)
11:44 <ClemensR> yes, thought so. me first testing that it works as expected ;)
11:44 <vmassol> it should :)
11:44 <vmassol> it has to be at the root
11:45 <vmassol> see http://extensions.xwiki.org/xwiki/bin/view/Extension/Localization+Module#HProvidetranslationbundleinajar
11:48 <ClemensR> yes, ok, I see, thanks!
11:50 <vmassol> has quit
11:54 <ClemensR> ah, but it is already mentioned at the http://dev.xwiki.org/xwiki/bin/view/Community/ApplicationDevelopmentBestPractices  ... or is this "just for applications" ?
11:54 <ClemensR> (meh, me too late)
12:18 <Kaisen> has joined #xwiki
12:45 <DarkKnightCZ> has left #xwiki
13:04 <xwikibot> has joined #xwiki
13:29 <xwikibot> has joined #xwiki
13:53 <xwikibot> has joined #xwiki
14:10 <DarkKnightCZ> has joined #xwiki
14:14 <evalica> has quit
14:19 <vmassol> has joined #xwiki
14:29 <vmassol> has quit
14:40 <DarkKnightCZ> has quit
14:47 <Slashman> has joined #xwiki
15:28 <msmeria> has quit
15:37 <ClemensR> seems I broke jenkins, sorry
15:42 <ClemensR> locally it works, of course :/
15:48 <cjd> java1.6 ?
15:52 <ClemensR> on jenkins? I hope not. .... its a fluke in some livetable changes not arriving in time, it seems
15:52 <cjd> oh ok
15:53 <cjd> I didn't check but "broken on jenkins, works on local" always reminds me of javac versions
15:56 <ClemensR> ah, it got fixed mysteriously with the next commit :-/
15:57 <cjd> flickerbug
16:29 <Denis> has quit
16:39 <OSIMasson> has joined #xwiki
16:45 <Denis> has joined #xwiki
17:10 <KermitTheFragger> has quit
17:11 <Kaisen> has quit
17:16 <abusenius> has joined #xwiki
17:42 <gdelhumeau> has quit
17:53 <DarkKnightCZ> has joined #xwiki
18:02 <cjd> has quit
18:03 <woshilapin> has quit
18:15 <DarkKnightCZ> has left #xwiki
18:43 <Denis> has quit
19:00 <ClemensR> has quit
19:19 <mflorea> has quit
19:28 <Slashman> has quit
19:56 <OSIMasson> has quit
20:16 <mflorea> has joined #xwiki
20:44 <Denis> has joined #xwiki
20:48 <Denis> has quit
21:16 <vmassol> has joined #xwiki
21:20 <sburjan> has quit
21:27 <sburjan> has joined #xwiki
21:31 <mflorea> has quit
21:48 <vmassol> has quit
22:08 <vmassol> has joined #xwiki
22:17 <vmassol> has quit
22:22 <vmassol> has joined #xwiki
22:26 <vmassol> has quit
22:39 <abusenius> has quit
22:45 <Denis1> has joined #xwiki
22:49 <Denis1> has quit
22:53 <mflorea> has joined #xwiki
23:22 <vmassol1> has joined #xwiki
23:26 <vmassol1> has quit
23:50 <mflorea> has quit
Tags:
   

Get Connected