IRC Archive for channel #xwiki on 16 May 2013

Last modified by Vincent Massol on 2013/05/16 23:40

<abusenius_> has quit
01:19 <jvelo> has quit
02:04 <Slashman> has quit
02:40 <sburjan`> has quit
04:30 <Denis> has joined #xwiki
05:11 <Lamium> has joined #xwiki
05:13 <Lamium1> has quit
05:51 <Denis> has quit
06:08 <kstuart> has quit
07:33 <mflorea> has joined #xwiki
07:51 <mflorea> has quit
08:09 <mflorea> has joined #xwiki
08:15 <vmassol> has joined #xwiki
08:32 <tmortagne> has joined #xwiki
09:03 <vmassol> fyi thomasD has found a nice tool yesterday for cleaning HTML: http://jsoup.org/
09:03 <vmassol> no idea how it compares to htmlcleaner though
09:03 <vmassol> (btw waiting fir htmlcleaner 2.5 real soon now, it has some goodies for us and Scott told me he's releasing it soon now)
09:04 <msmeria> has joined #xwiki
09:08 <sburjan`> has joined #xwiki
09:09 <tmortagne> has quit
09:10 <tmortagne> has joined #xwiki
09:15 <Denis1> has joined #xwiki
09:15 <Denis1> is now known as <Denis>
09:20 <Lamium1> has joined #xwiki
09:38 <SvenDowideit> has quit
09:41 <SvenDowideit> has joined #xwiki
10:02 <SvenDowideit> has quit
10:17 <sburjan> has joined #xwiki
10:29 <Lamium1> Okay so I have a question for you guys to break the morning for you (at least is it morning here in the UK...)
10:30 <Lamium1> I'm trying to create a HTML5 uploader for a template but it's not really playing ball. I'm not sure if it's just me not understanding the XWiki way of thinking but the situation is this.
10:30 <Lamium1> I'm trying to make a template to create an item. In the item there is a description, price and image. now I know inside the app within minutes I can make a short text input for the description etc but there is no image/file picker in my list I only have User Group or Date. So I then decided to try and use  your uploader within the {{html}} syntax and it displays in WYSIWYG but not when I go to inline form.
10:30 <Lamium1> Essentially what I want as an outcome here, is a simple form where I can write a description, upload an image and create the page. Where am I going wrong with this?
10:31 <vmassol> Lamium: can you past on pastebin your code?
10:31 <vmassol> *paste
10:31 <vmassol> have you used the attachmentselector macro?
10:32 <Lamium1> Bear with me here, I'm really new to xwiki
10:32 <Lamium1> I've created a class called CreateNewItem
10:32 <Lamium1> I'm inside CreateNewItemTemplate
10:32 <Lamium1> I go to Edit > wiki
10:32 <Lamium1> and I typed the following:
10:34 <Lamium1> I'll pastebin it, it's not long
10:34 <Lamium1> http://pastebin.com/J3krZN2Z
10:37 <Lamium1> Now when I switch to WYSIWYG I can see the image upload tool. However in the inline form i can't see it
10:37 <vmassol> works fine for me (except it does nothing but that's another matter)
10:37 <vmassol> http://playground.xwiki.org/xwiki/bin/edit/Main/Test?editor=inline
10:37 <Lamium1> I don't have permission to view that
10:37 <tmortagne> has quit
10:38 <vmassol> you just need to register on that site if you wish
10:38 <Lamium1> one sec
10:38 <vmassol> (then you'll get edit rights)
10:39 <vmassol> but using teh attachmentselector macro makes the most sense to me
10:41 <Lamium1> It's much nicer to use than captcha and so far it's served me well
10:41 <tmortagne> has joined #xwiki
10:43 <Lamium1> I can see it works on your version but it doesn't seem to show on my version in the inline form editor. Did you make any changes?
10:46 <vmassol> Lamium: no change
10:46 <vmassol> here's a working example:
10:46 <vmassol> http://playground.xwiki.org/xwiki/bin/view/VMA/WebHome
10:47 <vmassol> Lamium: thanks for the http://areyouahuman.com/landing-b/?utm_expid=44670397-6 suggestion, you should create a jira issue about it actually, as an idea for integration :)
10:52 <vmassol> Lamium: check the contnet of the page
10:52 <vmassol> I just created a class at VMA.MyClass
10:52 <vmassol> with one property called "image"
10:52 <vmassol> then I created an object at VMA.WebHome
10:52 <vmassol> and used the attachmentselector macro
10:52 <vmassol> now I have an image picker which does everything
10:53 <vmassol> - attaches images to my page
10:53 <vmassol> - displays them
10:53 <gdelhumeau> has joined #xwiki
10:53 <vmassol> - allows users to change them
10:53 <vmassol> - updates the "image" property from my class
10:54 <vmassol> note: to understand what I've said you need to read the dev guide adn undertand concepts of classes and objects
10:54 <vmassol> (http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel)
10:54 <Lamium1> Okay, I can see you created the MyClass but i can't access the area to view the objects
10:54 <vmassol> that's because your user is a simple user
10:55 <Lamium1> I see
10:55 <vmassol> http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HSimpleandAdvancededitingmodes
10:55 <vmassol> just edit your profile and make yourself an advanced user ;)
10:59 <tdelafosse> has joined #xwiki
11:02 <Lamium1> Okay I think I'm on the right path now, thank you Vincent. Will let you know how I get on
11:04 <vmassol> ok cool
11:12 <kstuart> has joined #xwiki
11:17 <gdelhumeau> has quit
11:17 <Lamium1> okay, I've attached the attachmentSelector macro like you've said and created the object inside the template coming from the MyClass object and yet the attachment selector still only displays when I click Edit > WYSIWYG
11:23 <evalica> has joined #xwiki
11:25 <vmassol> Lamium: if you use the exact content as I've put you'll get it in view mode too
11:26 <vmassol> savemode="direct"
11:26 <vmassol> check ee http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachment+Selector+Macro
11:30 <Lamium1> Okay I've used save mode direct and also I've set the two mandatory settings in the attachmentSelector macro. My Class is defined in XWiki.MyClass and the string property is called 'image'. These two are definitely set
11:31 <Lamium1> still no dice, I'm going to take a closer look at yours to see if I've missed something
11:32 <gdelhumeau> has joined #xwiki
11:36 <Slashman> has joined #xwiki
11:49 <Lamium1> Thanks Vincent, nailed it now. I've no idea why but it had something to do with the fact that it didn't like me using the macro inside an AppWithinMinutes program. As soon as I created a separate page outside the AppWithinMinutes application and put the macro in it worked like a charm in all views
11:50 <vmassol> ok, I don't know AWM that well so not sure what you were doing
11:50 <vmassol> but glad you found a solutino
11:50 <Lamium1> neither do I but I'm also glad I found a solution :D
12:48 <vmassol> mflorea: ping
12:48 <mflorea> vmassol: pong
12:48 <vmassol> I'm failing to build xwiki-platform-wysiwyg-server
12:48 <vmassol> toHTML(org.xwiki.wysiwyg.server.internal.converter.DefaultHTMLConverterTest)  Time elapsed: 0.001 sec  <<< ERROR!
12:48 <vmassol> org.xwiki.component.manager.ComponentLookupException: Can't find descriptor for the component [role = [interface org.xwiki.rendering.parser.Parser] hint = [syntax/x.y]]
12:49 <vmassol> any idea?
12:49 <vmassol> from at org.xwiki.wysiwyg.server.internal.converter.DefaultHTMLConverterTest.toHTML(DefaultHTMLConverterTest.java:102)
12:49 <mflorea> did you do any changes?
12:49 <vmassol> does it work for you?
12:49 <mflorea> I was building fine
12:49 <vmassol> I have chages locally but at first glance they don't look related
12:49 <vmassol> *chages
12:49 <vmassol> *changes
12:50 <mflorea> platform build is fine on CI
12:50 <mflorea> let me build locally, but I'm pretty sure it will pass
12:51 <vmassol> ah I know I think
12:51 <vmassol> must be thomas's change from yesteday
12:51 <vmassol> he's reverted but I didn't rebuild commons
12:51 <vmassol> and apparently there was no newer version on ci
12:51 <mflorea> ok, it fails for me too
12:51 <vmassol> s/ci/maven.xwiki.org
12:51 <vmassol> ah?
12:52 <vmassol> rebuilding commons
12:52 <vmassol> (locally)
12:54 <vmassol> works now
12:54 <mflorea> ok
13:09 <vmassol> tmortagne/all: going to commit something potentially dangerous to fix http://jira.xwiki.org/browse/XWIKI-9021#
13:11 <vmassol> I wouldn't mind some code review once it's committed :)
13:11 <vmassol> the code changes are pretty small
13:11 <vmassol> but their effect can be huge ;)
13:14 <vmassol> (I personally don't full master the consequences of my change which is a bit worrying ;))
13:30 <xwikibot> has joined #xwiki
13:31 <vmassol> I don't get that…. something is changing the bot configuration when it restarts…. will need to debug one day
13:52 <vmassol> ok here you go….
14:01 <alexch> has joined #xwiki
14:02 <alexch> has quit
14:02 <alexch> has joined #xwiki
14:07 <Lamium> has quit
14:09 <vmassol> thanks for reviewing tmortagne
14:09 <tmortagne> vmassol: as for he logic of the change we already talked about it some time ago and I agree with it
14:10 <tmortagne> s/he/the/
14:10 <vmassol> yes I know, but it's still dangerous IMO
14:10 <vmassol> there might be use cases I forgot to handle
14:10 <tmortagne> sure
14:11 <tmortagne> but manipulating a XWikiContext which is not the one in the ExecutionContext already cause all sort of issue anyway and I think we pretty much all agree we don't want it I think
14:11 <tmortagne> I don't think there is any valid use case broken
14:11 <vmassol> yeah, maybe it fixes other stuff
14:11 <tmortagne> pretty sure it does
15:20 <rafaelav> has joined #xwiki
15:36 <sburjan> Denis: ping
15:47 <vmassol> has quit
15:48 <Denis> sburjan: pong ?
15:52 <sburjan> Denis: I got 2 errors when setting a 4.5.3 on Oracle. They seem random because I wasn't able to reproduce either of them. here they are http://pastebin.com/JCDc27ej and http://pastebin.com/95KLazSZ
15:52 <Lamium> has joined #xwiki
15:52 <sburjan> one seems related to DW or CM, but other one is DB specifric
15:53 <vmassol> has joined #xwiki
15:55 <Denis> sburjan: I can't say much about those, sorry
15:55 <sburjan> ok
16:01 <vmassol> has quit
16:01 <vmassol1> has joined #xwiki
16:08 <Lamium> has quit
16:09 <vmassol1> has quit
16:10 <Lamium> has joined #xwiki
16:35 <Lamium1> has left #xwiki
16:42 <sdumitriu1> has joined #xwiki
16:43 <SvenDowideit> has quit
16:43 <SvenDowideit> has joined #xwiki
16:54 <alexch> has quit
16:59 <SvenDowideit> has quit
17:02 <SvenDowideit> has joined #xwiki
17:04 <vmassol> has joined #xwiki
17:28 <sburjan> has quit
17:51 <mflorea> sdumitriu: ping
17:53 <sdumitriu1> mflorea: Pong
17:53 <mflorea> do we have a procedure to deal with fixing bugs in prototype.js / scriptaculous.js ?
17:54 <sdumitriu1> Not really
17:54 <mflorea> ok
17:54 <sdumitriu1> But I do have a way
17:54 <sdumitriu1> I have my own fork where I commit stuff
17:54 <sdumitriu1> And I try to make pull requests hoping they'll get accepted
17:55 <sdumitriu1> We should also document the changes that we include
17:55 <sdumitriu1> We don't do that now, I usually look at the log for the file when it's time to upgrade
17:55 <sdumitriu1> Having a list at the top of the file will make upgrades easier
17:56 <mflorea> yes, I was planning to do that
17:56 <mflorea> in my case I changed effects.js
17:56 <sdumitriu1> What bugs?
17:56 <tmortagne> has quit
17:56 <sdumitriu1> Ah, yes, i for scriptaculous I don't have a fork with fixes...
17:57 <sdumitriu1> Just manual changes in our source code
17:57 <sdumitriu1> Anyway, scriptaculous is almost dead...
17:58 <mflorea> well, as you can see in prototypejs.org/doc/latest/dom/Element/prototype/getOpacity the signature says the return value is String. The problem is that Effect.Opacity uses getOpacity as if it returns a number. This fails in IE9.
17:58 <mflorea> in order to keep the signature, I fixed Effects.Opacity to make sure the passed to/from are numbers
17:59 <mflorea> in IE9 getOpacity returns a string, the value is good though
17:59 <sdumitriu1> K
17:59 <mflorea> but String not number
17:59 <mflorea> so the opacity transition doesn't work
18:00 <mflorea> the bug is mentioned here https://prototype.lighthouseapp.com/projects/8886/tickets/1278-ie-detection-and-opacity#ticket-1278-4
18:03 <msmeria> has quit
18:08 <evalica> has quit
18:11 <evalica> has joined #xwiki
18:36 <evalica> has quit
18:36 <evalica> has joined #xwiki
18:36 <evalica> has quit
18:55 <abusenius_> has joined #xwiki
19:25 <Slashman> has quit
19:40 <Lamium> has left #xwiki
19:41 <gdelhumeau> has quit
20:25 <tdelafosse> has quit
20:42 <Denis> has quit
21:16 <vmassol> has quit
21:25 <rafaelav> has quit
21:27 <vmassol> has joined #xwiki
21:28 <vmassol1> has joined #xwiki
21:28 <vmassol> has quit
21:37 <vmassol1> has quit
21:40 <rafaelav> has joined #xwiki
21:50 <sdumitriu> has quit
21:51 <sdumitriu> has joined #xwiki
21:57 <jbwiv__> has joined #xwiki
22:14 <jbwiv__> is now known as <timtimc>
22:15 <timtimc> guys, I need to transfer our xwiki from one server to another. Aside from the database and /etc/xwiki directory, what else should trsf?
22:24 <rafaelav> has left #xwiki
22:39 <sdumitriu2> has joined #xwiki
22:40 <Denis> has joined #xwiki
22:42 <sdumitriu1> has quit
22:50 <abusenius_> has quit
22:50 <kstuart> has quit
22:59 <sdumitriu2> has quit
22:59 <sdumitriu1> has joined #xwiki
23:40 <mflorea> has quit

Get Connected