[01:33:12] New patchset: Yaron Koren; "One more update: SIO" [mediawiki/extensions/SemanticBundle] (master) - https://gerrit.wikimedia.org/r/49796 [01:33:44] New review: Yaron Koren; "Patch Set 1: Verified+2 Code-Review+2" [mediawiki/extensions/SemanticBundle] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/49796 [01:33:44] Change merged: Yaron Koren; [mediawiki/extensions/SemanticBundle] (master) - https://gerrit.wikimedia.org/r/49796 [02:06:59] New patchset: Yaron Koren; "Removed escaping of apostrophes in template names (no longer necessary?)" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/49798 [02:07:55] New review: Yaron Koren; "Patch Set 1: Verified+2 Code-Review+2" [mediawiki/extensions/SemanticForms] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/49798 [02:07:56] Change merged: Yaron Koren; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/49798 [12:48:14] hey yaron [12:48:24] I've got a patch for ED ready [12:48:29] Hi - oh, great. [12:48:44] I'll paste [12:49:29] https://gist.github.com/dbolser/a4da0dfa61a87969a828 [12:50:31] How is #call_external_table called? [12:50:52] I use the same 'data=mappings' code to define the template call as you use to map external vars to 'internal' [12:51:04] {{#call_external_table:template=x|data=t1=Title 1,t2=Title 2,t3=Title 3}} [12:51:35] Cool. [12:51:40] where t1, t2 and t3 are 'internal' variables got from {{#get_web_data:url ... [12:51:53] and 'Title 1' is the template parameter [12:52:14] Should the order of those be switched, maybe? [12:52:18] I was a bit confused by the code to set $num_loops [12:53:53] Well, you don't really need to set it at all, I don't think - instead of a "for" loop at the end, you can just do a "while". [12:58:11] because sorry, flaky network [12:58:18] yaron: right [12:58:37] yup, switching data=ev=template-param, seems logical [12:59:13] yaron: right, at first I thought it was being smart, as some 'loops' may not have values for all variables, but the code doesn't respect that ultimately [12:59:22] I'll switch it to a while [13:00:13] yaron: are there a bunch of ED pages I can use to test changes? [13:00:15] Yes, the other code basically just assumes that all the variables have the same number of values... it doesn't do anything special if they don't. [13:00:25] right [13:00:28] I don't know what you mean by that. [13:00:41] sorry, I'll go to a LAN [13:00:45] wifi sux here [13:01:07] yaron: If I change the current code to a while, I'd liek to test it on 'real' calls to EDs [13:01:18] like LDAP, XML, CVS, etc [13:01:36] Ah, okay. [13:01:36] perhaps I'll not touch existing code for the time being ;-) [13:02:29] I can't help with LDAP or DB data, but there are a few XML/CSV/JSON sources. [13:03:26] Here are some pages you can copy: http://discoursedb.org/wiki/Germany , http://discoursedb.org/wiki/Fruits_table [13:04:24] Those are both CSV... here's an XML one: http://discoursedb.org/wiki/External_Data_XPath_demo [13:04:45] I can't think of anything for JSON. [13:05:07] Though it shouldn't matter what the source is. [13:09:59] I'll send the complete patch by email (few other lines in a few other files) and switch the order of the data= [13:10:05] sorry, back on lan [13:10:16] ty [13:20:41] yaron: after some debugging later today ;-) [13:20:44] l8r [15:18:19] Hi everyone! [15:42:08] Does anybody use the datetimepicker? [15:49:11] Troika: why, are you having a problem with it? [15:52:54] Yes we update Mediawiki from 1.7 to 1.9 [15:53:25] and for some reason the fields are plain now and not the datetimepicker as supposed [15:54:04] MediaWiki 1.19.2 [15:54:40] SMW 1.7.1 and Semantic Result Formats (Version 1.7.1) [15:56:22] I we tried the new SRF but it does not change anything [15:56:48] the datetime picker worked in the Form before the update [15:57:03] Much borkenness on this page, in case it isn't a known issue: http://semantic-mediawiki.org/wiki/Help:Template_format [15:57:47] Troika: do you have the Semantic Forms Inputs extension installed? That's where datetimepicker is defined. [15:58:47] Semantic Forms Inputs (Version 0.5) [15:58:56] is installed [16:04:19] Troika: what version of Semantic Forms are you using? [16:04:41] Also, are any of the other inputs causing problems, or just datetimepicker? [16:09:08] Semantic Forms (Version 2.4.2) [16:09:37] I have checked: the datepicker and timepicker do not work either [16:12:17] Okay - that's not surprising. [16:14:30] Troika: upgrading SFI to version 0.6 might possibly help. [16:14:55] Btw. We have been expieriencing a weird behavior lately when creating new properties. Sometimes they do not seem to "connect" the data from the Form-page and Template. For example I create a text property "TTest" and implement it in the form and template just as all the other properties. however ttest does not show up as a textbox. Instead it shows up just as an undefined input field [16:16:21] Well, SF's property-detection is not perfect; if the template is storing data in any way that's at all complex, there's a good chance that SF won't be able to figure it out. [16:16:44] In other cases the entered data from the formfield is stored on the corresponding page and can be queried and displayed. however nothing shows up on the property [16:16:46] You can always get around that problem by adding "|property=Property Name" to the field tag in the form definition. [16:16:47] Ok [16:16:58] Oh, that's a different issue. [16:17:10] Actually, I don't understand that at all. [16:17:19] maybe we have been jucing up SMWs possibilities a bit too much ;) [16:17:32] By "shows up on the property", do you mean "shows up on the property page"? [16:17:48] yeah I forgot to type page [16:18:06] That's very strange. [16:20:07] We will look furter into it [16:20:22] thanks for your time and help so far! [17:33:08] New patchset: Jeroen De Dauw; "Fix setup script for MySQL" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/49837 [17:33:20] New review: Jeroen De Dauw; "Patch Set 1: Verified+2 Code-Review+2" [mediawiki/extensions/SemanticMediaWiki] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/49837 [17:33:21] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/49837 [18:44:38] Hi. Is it possible to get a list of created classes in semantic mediawiki? Either through a query or a special page [18:51:44] Velyks: what do you mean by a created class? [18:52:29] Might be a semantic forms feature. It's through Special:CreateClass [18:54:38] Ah - well, that one just creates categories, forms, templates, etc. [18:54:51] So you can see the list by going to Special:Categories, Special:Forms, etc. [18:55:00] Right, so there is nothing special about a class. [18:55:08] Right. [18:55:28] If you used the Page Schemas extension to do it, it would be a different story. [18:55:28] It's just a convenient way to create everything required, alright. I'll keep that in mind when naming properties (that was close) [18:56:08] That looks like something that was in SMW+ [18:56:29] I'm not aware of anything like that in SMW+. [18:57:10] Damn. That looks a lot better than what I have.... [19:30:01] Another quicky question. My Properties are coming up as page links, is there any way to stop this? [19:30:32] It's happening for some but not others. It's only happening on ones where I'm using #arraymap to populate a table. [19:30:42] {{#arraymap:{{{Services|}}}|,|x|[[services::x]]|
}} [19:36:16] Velyks: have you created page Property:Services and typed the property correctly? [19:37:03] That is a point! [19:37:52] * Saruman chalks up a point: score now 1 [19:37:54] hurray! [19:49:05] Question! Trying to edit forms, I want to allow a list of values. Can't see what is different between a field that does and doesn't allow a list in the wikitext. Where is this normally defined? [19:50:18] if you want to disallow values outside of the list, then on the property page [19:52:20] It's not that. On the form page the field that allows lists has a long text box, and the field that doesn't has a short one. I want them to both be long and accept lists. [19:52:37] But I can't find where to define this as I made the Form using CreateClass [19:53:21] that sounds like it'll be in the {{{field }}} declaration of the form [19:54:22] New review: Foxtrott; "Patch Set 2: Verified+2 Code-Review+2" [mediawiki/extensions/SemanticForms] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/49789 [19:54:23] Change merged: Foxtrott; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/49789 [19:54:41] In there I have | {{{field|Product(s)}}}, and | {{{field|Related Servers}}}. I can't see any formatting information in there. Would these reference a template somewhere I don't know about? [19:55:27] no [19:56:20] SF gropes around in the template(s) on which the form sits, and tries to find the properties that the Fields reference, then checks the property pages [19:56:23] afaik [19:56:34] Rite... [19:56:44] so the list will actually be on the corresponding property page [19:56:55] as a set of [[allows value:: ]] statements [19:58:21] All I can see on the property page is [[Has type::Page]] [19:58:35] This is the one defined as a list. [20:00:18] and the other one is type Page as well? [20:03:05] Yeah, wierd [20:03:18] New patchset: Foxtrott; "bugfixes (preload not working; normalization of empty form names)" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/49858 [20:04:48] New review: Foxtrott; "Patch Set 1: Verified+2 Code-Review+2" [mediawiki/extensions/SemanticForms] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/49858 [20:04:49] Change merged: Foxtrott; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/49858 [20:20:23] Saruman: Turns out I was confusing myself with terribly named properties [20:20:44] Is there a good way to delete unused properties? Something that leaves no trace [20:27:52] in a wiki that's very hard [20:28:29] what's wrong with simply deleting the Property:TerriblyNamed page itself? [20:28:38] Will only be visible in the Recent Changes [21:50:27] Is there a bug-tracker for the SMW web site? This page still needs fixing: http://semantic-mediawiki.org/wiki/Help:Template_format