Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-19 Thread James HK
Hi, > Perhaps we should move out the existing ones now we are switching to 2.0 > anyway? I'd like to see that happen because `onPageSchemasRegistration` and `addToAdminLinks` are the two remaining hooks which block the removal of `SemanticMediaWiki.hooks.php` [0]. [0] https://github.com/Semanti

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread Jeroen De Dauw
Hey, Perhaps we should move out the existing ones now we are switching to 2.0 anyway? The new mini extensions can be put in the "suggests" section. Or perhaps not, as for those to fully function, you'd first need package definitions of their dependencies as well. Thoughts? Cheers -- Jeroen De Da

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread Yaron Koren
Hi James, > I'm not a huge fan of such interdependencies (and AdminLinks is no exception). This seems like the most overriding of your objections. Could you elaborate on it? -- Want fast and easy access to all the code in

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread Jeroen De Dauw
Hey, > The same thing holds true for Page Schemas, by the way - the code in SMW that hooks into it is somewhat complex, but as far as I know it hasn't required any special maintenance effort on the part of SMW devs. As far as I'm concerned, we (SMW devs) are responsible to not break code in our r

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread James HK
Hi, I can't say anything about the code (as I haven't seen it yet) but three things I'd like to comment: > newest of these three, and SMW doesn't connect to it yet, but I would like > to add code in to SMW to do that, most likely via another class, that would > be called "SMWSiteSettings". I'm n

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread Yaron Koren
Hi, Well, it depends on what you mean by "broken". From my perspective, as long as the code doesn't crash SMW's regular functionality, it's good enough. If there's a problem with the Site Settings functionality in SMW - even a severe problem - you could just redirect it as a Site Settings issue, w

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-18 Thread Jeroen De Dauw
Hey, > Unfortunately, there isn't yet a public example of an extension that hooks into Site Settings Just from the description you provided, it is still not clear enough for me to say much about it. The general concern with putting it into SMW is that this forces the people working on SMW to hol

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-17 Thread John McClure
Hi Yaron, Definitely SiteSettings is useful for a wikifarm, so is the interwiki table. To get named-value simplicity (for admins), adding a LONGTEXT column (or LONG VARCHAR) to the interwiki table and then extracting named values via canned mysql achieves similar goals mysql> describe interwi

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Yaron Koren
Hi Jeroen, Unfortunately, there isn't yet a public example of an extension that hooks into Site Settings - if this potential code gets into SMW, SMW could become the first. But the basic idea is that the class would contain various static methods, each of which was called by a different Site Setti

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Jeroen De Dauw
Hey, Can you give me some idea of what this code you'd put in SMW would look like? Is there already an example somewhere? Cheers -- Jeroen De Dauw - http://www.bn2vs.com Software craftsmanship advocate Evil software architect at Wikimedia Germany ~=[,,_,,]:3 -

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Yaron Koren
Hi John, The Page Schemas class is linked in my original email; the Admin Links function is in SemanticMediaWiki.hooks.php. I would rather not get into the technical details of any of those extensions in this thread, except as it relates to SMW. However - it's true that a key-value approach for S

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Yaron Koren
Hi Yury, You're right that Page Schemas, unlike the other two, is not really a "generic" framework, and is pretty tightly integrated in with the standard SMW approach to data structures, which has caused some problems. Personally, I think Page Schemas works well now - I use it on a regular basis

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread John McClure
On 7/15/2014 7:25 PM, Yaron Koren wrote: Semantic MediaWiki already hooks into the first two: Admin Links via a function, and Page Schemas with a class. Hi Yaron - What function/class are those. Also, i happened to review PS extension's DTD - has it changed? version ="1.0"encoding ="utf

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Yury Katkov
Hi! On Wed, Jul 16, 2014 at 3:37 PM, Yaron Koren wrote: > Hi Yury, > > On Wed, Jul 16, 2014 at 1:32 AM, Yury Katkov > wrote: > >> Hi Yaron! >> >> I think that for SiteSettings this patch could make sense although I'm >> strongly against such interdependencies between extensions (after trying t

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-16 Thread Yaron Koren
Hi Yury, On Wed, Jul 16, 2014 at 1:32 AM, Yury Katkov wrote: > Hi Yaron! > > I think that for SiteSettings this patch could make sense although I'm > strongly against such interdependencies between extensions (after trying to > contribute to PageSchemas) > Could you expand on that? > > Is Adm

Re: [SMW-devel] Adding Site Settings support to SMW?

2014-07-15 Thread Yury Katkov
Hi Yaron! I think that for SiteSettings this patch could make sense although I'm strongly against such interdependencies between extensions (after trying to contribute to PageSchemas) Is AdminLinks mentioned in SMW? That's really strange and surprising - I thought it's just a header button and th

[SMW-devel] Adding Site Settings support to SMW?

2014-07-15 Thread Yaron Koren
Hi, There are three extensions of mine that take a similar approach, where they provide a generic framework and other extensions add their own specific functionality in via hooks: Admin Links, Page Schemas and Site Settings. Semantic MediaWiki already hooks into the first two: Admin Links via a fu