Re: [Pywikipedia-l] querying only some properties for WikibasePage

2014-06-12 Thread Ricordisamoa
The PreloadingItemGenerator doesn't have any arguments to selectively query only some properties. If I don't need labels nor sitelinks nor aliases nor descriptions, why should I get them, wasting server- and client-side resources? Il 13/06/2014 05:55, John Mark Vandenberg ha scritto: Are the c

Re: [Pywikipedia-l] querying only some properties for WikibasePage

2014-06-12 Thread John Mark Vandenberg
On Fri, Jun 13, 2014 at 9:34 AM, Ricordisamoa wrote: > I still can't find a way to query only some item properties (e.g. claims) > from the Wikibase API using pywikibot. > I've tried all of them: > > .get('claims') > .get(True, 'claims') > .get(force=True, 'claims') > .get('claims', force=True) >

[Pywikipedia-l] querying only some properties for WikibasePage

2014-06-12 Thread Ricordisamoa
I still can't find a way to query only some item properties (e.g. claims) from the Wikibase API using pywikibot. I've tried all of them: .get('claims') .get(True, 'claims') .get(force=True, 'claims') .get('claims', force=True) .get('claims', True) but without success. Bots often don't need all

Re: [Pywikipedia-l] reflinks.py under GPL?

2014-06-12 Thread Ricordisamoa
Please sign off a Code-Review+1 for gerrit:139294 . Thanks in advance. Il 09/06/2014 10:02, Nicolas Dumazet ha scritto: Hey folks, Sorry about that. I'd happily relicense the original code under whatever is convenient for you. If anyone contributed t

Re: [Pywikipedia-l] reflinks.py under GPL?

2014-06-12 Thread Ricordisamoa
That is exactly what I was going to do ;-) Il 12/06/2014 21:08, Antoine Musso ha scritto: Le 12/06/2014 01:48, Ricordisamoa a écrit : I love the GPL /per se/, but I hate license conflicts. IMHO we should send an email to each author. The way I have seen it done in the past is to propose a pat

Re: [Pywikipedia-l] reflinks.py under GPL?

2014-06-12 Thread Antoine Musso
Le 12/06/2014 01:48, Ricordisamoa a écrit : > I love the GPL /per se/, but I hate license conflicts. IMHO we should > send an email to each author. The way I have seen it done in the past is to propose a patch, have all past authors added as a reviewers and mass mail them until they each vote +1.

Re: [Pywikipedia-l] (core) Adding code in scripts/i18n to gerrit review

2014-06-12 Thread Travis Briggs
Okay, so my follow up question is about this line: comment = i18n.twtranslate(pywikibot.Site(), "selflink-remove") Will that somehow work properly before the scripts/i18n code is submitted? Or do I have to submit the i18n code first and then make the core scripts change? Thanks! -Travis On 12

Re: [Pywikipedia-l] site.lang and site.code

2014-06-12 Thread info
> So If I get you right, when we want get a fallback from an i18n dictionary > it's better to use site.lang instead of site.code and otherwise site.code > is preferable, or always It's better to use site.code? At the moment it's always better to use site.code in core but we should change that b

Re: [Pywikipedia-l] (core) Adding code in scripts/i18n to gerrit review

2014-06-12 Thread info
- Original Nachricht Von: Travis Briggs An: pywikipedia-l@lists.wikimedia.org Datum: 12.06.2014 02:41 Betreff: [Pywikipedia-l] (core) Adding code in scripts/i18n to gerrit review > Hi, > > I've sent my first patch for code review ( > https://gerrit.wikimedia.org/r/#/c/138