[02:07:30] New review: Jamie Thingelstad; "THANK YOU! Applied diff and can confirm fixes issue!" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/68287
[06:58:14] New patchset: Nischayn22; "Correct email validation" [mediawiki/extensions/SemanticSignup] (master) - https://gerrit.wikimedia.org/r/68342
[13:16:07] .
[13:18:56] A period can have so many meanings o_0
[13:31:17] hi yaron
[13:31:35] Nikerabbit: hello!
[13:32:02] Nischayn22: yes.
[13:32:57] yaron: https://gerrit.wikimedia.org/r/68342 :)
[13:33:24] Oh yeah! Thanks for the reminder.
[13:33:45] Change merged: Yaron Koren; [mediawiki/extensions/SemanticSignup] (master) - https://gerrit.wikimedia.org/r/68342
[14:01:27] Hey Yaron
[14:01:35] Are you working on MSUpload plugin?
[14:01:37] Hello!
[14:01:53] to get working with smw forms
[14:01:55] Nischayn22 is, or was.
[14:01:57] im really interested in that
[14:02:28] ive been trying to get RichMedia with WYSIWYG working for image uploading but dont understand how to run the patches and cant seem to get to work
[14:02:36] so someone recommended MSUpload.
[14:03:26] kevindank: Hi
[14:03:42] Hey Nischayn22: any info on getting msupload to work?
[14:04:19] kevindank: I have a patch for getting it work with SF
[14:04:25] awesome!
[14:04:37] don't know when that will actually get merged and released
[14:05:07] in fact it needs some more work
[14:05:50] do you have a copy of it i could demo?
[14:06:29] you could do a git pull of the changes and try them out
[14:06:36] yeah that would be great
[14:06:44] https://gerrit.wikimedia.org/r/65356
[14:06:52] https://gerrit.wikimedia.org/r/65485
[14:07:02] These two are supposed to work together
[14:07:14] kevindank: Are you a developer?
[14:08:02] Nischayn22: I am, a bad one - but im more or less just desperate to find a way to get my users to be able to upload images without leaving the page
[14:08:07] been looking for a solution for 3 years.
[14:08:32] Heh, that's a long time now
[14:08:53] Yeah, and extremely frustrating.
[14:09:27] With some support the changes could get in, so go ahead and demo them :)
[15:14:45] welp, not going so well
[15:15:07] probably because i havent used github
[15:44:19] How do i run the patch .txt file for WYSIWYG editor to work for free text area?
[15:49:07] yaron: http://wiki.cancer.org.au/australia/Special:SemanticSignup they got it working pretty right
[15:49:33] I suspect a fork being used
[15:50:37] or an older version that worked :D
[15:52:15] Nischayn22: well, it's not like SS never worked...
[15:52:42] For certain combinations of SS, SF and MW, I think it worked fine.
[15:54:16] yaron: But it doesn't seem to login the users after signup, here it does that pretty well
[15:54:33] Oh, okay... that one I don't know.
[15:54:51] Maybe registration in MW used to do an automatic login?
[15:55:00] That would explain why there was no login code in SS before?
[15:55:18] s/before?/before./
[15:55:26] yeah probably
[15:55:39] the tabIndex is broken there
[15:55:51] but overall impressive
[15:56:06] similarly https://events.ccc.de/congress/2012/wiki/index.php?title=Special:SemanticSignup
[15:56:36] Right - well, older MW version, and all that.
[15:57:55] yaron: Interesting fact: if you try to edit the user page again using the form used by SS, you can again enter username and password
[15:58:20] Oh... that sounds bad.
[15:59:06] I think a fix would be to only show these only when on Special:SemanticSignup
[15:59:33] yaron: What's your idea about the preview option? currently that button only refreshes the page
[15:59:48] can it be made to work?
[16:00:05] Why doesn't it work, do you know?
[16:00:35] Nah.
[16:00:59] I think SS never handles that button
[16:01:13] There are some Javascript issues around the preview button in SF 2.5.2 - maybe that's related to it, somehow.
[16:01:25] Its a special page that either shows the form or tries the save stuff
[16:01:47] yaron: How does a SpecialPage know of a Preview button?
[16:02:36] Well, Special:FormEdit can handle it correctly (or, at least, not counting the current issue(s) )...
[16:02:43] I don't quite know what you mean.
[16:03:28] Okay I figured it out
[16:03:32] SS does the following
[16:03:33] if ( $wgRequest->getCheck( 'wpSave' ) ) {
[16:03:33] return $this->executeOnSubmit();
[16:03:34] } else {
[16:03:34] $this->printForm();
[16:03:34] return true;
[16:03:34] }
[16:03:52] so it never does any preview
[16:13:02] Nischayn22: oh, okay. Well, maybe SS should just remove the "preview" and "changes" buttons, if that's not too hard to do...
[16:13:54] Actually I am trying to get it to work
[16:19:20] New patchset: Mwjames; "SMW\Subobject add DataValue mock test" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/68420
[16:26:46] Change merged: jenkins-bot; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/68420
[16:45:32] so i gave up on msupload and am now back to ckeditor
[16:46:27] it loads fine for normal pages but not for the free text area in the semantic forms
[16:46:38] also the richmedia portion doesnt work as it says fancybox is not a function in error console
[17:11:11] kevindank_: Any trouble?
[17:11:35] all you need to do is install git and then do the 'git pull'
[17:11:44] the URL is on the change page
[17:37:51] yaron: I got the preview working but then EditPage throws a permissions error on top
[17:38:26] yaron: http://i.imgur.com/URPSdGi.png
[17:39:43] Hm... in Special:FormEdit, the preview button (and "changes") goes to the target page itself.
[17:39:55] i.e., it doesn't stay on Special:FormEdit.
[17:40:37] But that is not desirable here
[17:40:55] Well... in that case, doing preview/changes might be tricky.
[17:40:58] Maybe try to change the global wgTitle :D
[17:41:15] Right... although, is having preview/changes functionality that important?
[17:41:40] Some guys want that, I am not quite aware of the reason behind
[17:44:05] Well, as a developer, you can always try to "push back" against requests that don't make sense.
[17:44:15] ...or seem hard to do.
[17:45:27] Yeah, but today I am in a rare 'lets code' mood
[20:34:25] hiya
[20:35:28] anyone ever used the external data extension with JSON?
[20:36:06] I am looking for an example. I can probably guess how it works, but wondering how I can access JSON that may be a bit deep in the file.
[20:36:17] (ie. not a very flat JSON file)
[21:22:45] drobbins: unfortunately, there's nothing like XPath available for JSON in External Data.
[21:23:11] There is a "JSONPath", but External Data doesn't support it. (It's not very well supported in general.)
[22:31:48] yaron: so, what can I scrape from JSON then? :)
[22:32:17] Normal stuff.
[22:32:28] so the first level
[22:32:36] { "foo" : "bar" }
[22:32:53] but not { "foo" : { "blah" : "oof" } }
[22:32:56] ?
[22:33:14] if that is JSON, hopefully it is
[22:33:30] You can get either one.
[22:33:38] so I could get the "oof"?
[22:33:40] Yes.
[22:34:58] ok, I think that will work for me
[22:35:11] so in http://wiki.zenoss.org/download/zenpacks/ZenPacks.zenoss.oVirt/1.2.0/release.json
[22:35:24] I could grab the "Requires" data?
[22:35:55] Did you try it?
[22:35:55] I need to grab "Requires", and the "ZenPack" inside, and ideally also the "Version" list inside too.
[22:36:04] no, I haven't found a basic example :)
[22:36:30] I will try by trial and error tomorrow
[22:38:24] if you can paste a basic example code, I will give you a virtual cookie.
[22:40:35] there can be multiple "Requires" entries.
[22:40:37] that is the tricky part.
[22:41:55] And you only want to display one? In that case, it's probably not possible.
[22:41:56] it's a list of dictionaries, each dictionary has a requirement. from each requirement, I need to grab "Version" and "ZenPack"
[22:42:02] no, I want to grab all.
[22:42:05] iterate through them.
[22:42:12] For that, you need #for_external_table.
[22:43:07] in the JSON I showed you, there is one requirement.
[22:43:36] I would want to grab each "ZenPack" and build up a multi-field semantic entry with it.
[22:45:48] [[Requires::foo, bar, oni]]
[22:46:28] I think I will only display the version info. I don't need to encode that semantically.
[22:46:55] yaron: is that do-able with #for_external_table?
[22:47:43] I don't really follow what you're trying to do.
[22:52:42] I want to grab all instances of "ZenPack" that may exist and encode them in one semantic field.
[22:53:13] or, specify multiple ones. I guess that SMW will aggregate multiple ones into a single multi-entry