[Pywikipedia-l] master switched from httplib2 to requests

2015-06-02 Thread John Mark Vandenberg
A changeset to switch to python-requests has been merged into pywikibot-core. https://gerrit.wikimedia.org/r/#/c/213977/ Note that config.proxy support doesnt exist. requests will read your environment variables to find a proxy. If this doesnt work for you, please raise a bug. A minimum versio

[Pywikipedia-l] Pywikibot 2.0 RC 1 published, and tarball releases not updated

2015-05-28 Thread John Mark Vandenberg
At the Lyon Hackthon, updates to the tarball releases were turned off, and Pywikibot 2.0 release candidate (RC) 1 was published onto PYPI. https://pypi.python.org/pypi/pywikibot The tarball releases are currently locked to the git revision before the Lyon Hackathon. This was done to prevent larg

Re: [Pywikipedia-l] temporary breaking change: cosmetic changes moved into library

2015-05-07 Thread John Mark Vandenberg
On Thu, May 7, 2015 at 4:43 PM, Strainu wrote: > 2015-05-07 7:51 GMT+03:00 John Mark Vandenberg : >> >> Another way to reduce the impact of the move is allowing pwb to find & >> execute commands located in the pywikibot/ directory. >> >> https://gerrit.wikim

[Pywikipedia-l] temporary breaking change: cosmetic changes moved into library

2015-05-06 Thread John Mark Vandenberg
cosmetic_changes.py has been moved from scripts/ into pywikibot/ , so that the library package 'pywikibot' is not dependant on the 'scripts' package. https://gerrit.wikimedia.org/r/#/c/190715 The script can still be run using its new location explicitly; e.g. $ python3 pwb.py pywikibot/cosmetic_

[Pywikipedia-l] SVN 1.6 support to be removed

2015-04-04 Thread John Mark Vandenberg
The core and compat codebase have code to support SVN pre 1.7. I have tested it with 1.6, and it looks *roughly* correct, but our code does not work, and has not worked since Feb 2014 as detailed at https://phabricator.wikimedia.org/T95077 In addition, SVN 1.6 is no longer supported by the SVN d

Re: [Pywikipedia-l] Recursive HTML entities

2015-03-16 Thread John Mark Vandenberg
Hi, I think the problem is that langlinks did/can/could use &#; https://no.wikipedia.org/w/index.php?title=Wikipedia:Om&diff=9814748&oldid=9792310 However, those &'s dont appear to be in the current API langlinks results for the old revision. https://no.wikipedia.org/w/api.php?action=query&

Re: [Pywikipedia-l] Configuring PyWikibot for a local wiki

2015-02-27 Thread John Mark Vandenberg
On 27 Feb 2015 10:41, "Ricordisamoa" wrote: > > Il 26/02/2015 22:31, John Mark Vandenberg ha scritto: > >> >> We need a wiki page which explains the current combat v core situation suitable for new users. >> > Pun inten

Re: [Pywikipedia-l] Configuring PyWikibot for a local wiki

2015-02-26 Thread John Mark Vandenberg
We need a wiki page which explains the current combat v core situation suitable for new users. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Revise your old patches

2015-02-22 Thread John Mark Vandenberg
On Sun, Feb 22, 2015 at 10:33 PM, Amir Ladsgroup wrote: > So what do you suggest? If a CS is old enough, rebase is the least of the > problems. What is the problem that you are trying to solve? Gerrit allows filtering by review status using url parameters, etc, so 'too many patches' is hardly a

Re: [Pywikipedia-l] Revise your old patches

2015-02-22 Thread John Mark Vandenberg
On Sun, Feb 22, 2015 at 10:16 PM, John Mark Vandenberg wrote: > On Sun, Feb 22, 2015 at 7:40 PM, Amir Ladsgroup wrote: >> Hey, >> There are about 200 open patches in pywikibot right now, huge part of them >> are obsolete, really problematic, or redundant patches. > >

Re: [Pywikipedia-l] Revise your old patches

2015-02-22 Thread John Mark Vandenberg
On Sun, Feb 22, 2015 at 7:40 PM, Amir Ladsgroup wrote: > Hey, > There are about 200 open patches in pywikibot right now, huge part of them > are obsolete, really problematic, or redundant patches. Can you identify some that fit into these categories? Maybe add a note on them recommending what sh

Re: [Pywikipedia-l] Commit 08ac2d74f27bf350a7b8d942995cf94c99d419ab

2015-01-23 Thread John Mark Vandenberg
HI Strainu, I am guessing you're using $ python pwb.py

Re: [Pywikipedia-l] Running pywikibot on PyPy

2015-01-03 Thread John Mark Vandenberg
Thanks. Which GCC is your CPython compiled for? Also GCC 4.9.0 ? What would be especially useful is if we can determine which methods are performing vastly slower on CPython vs PyPy for that workload. On Fri, Jan 2, 2015 at 8:45 PM, Ricordisamoa wrote: > Il 02/01/2015 14:07, John M

Re: [Pywikipedia-l] Running pywikibot on PyPy

2015-01-02 Thread John Mark Vandenberg
On Fri, Jan 2, 2015 at 6:10 PM, Ricordisamoa wrote: > PyPy is an alternative implementation of Python primarily focused on > performance. > During a very rough benchmark I made with CosmeticChangesToolkit and a few > pages, it didn't provide significant speed improvements, but it did work. > Have

Re: [Pywikipedia-l] Tests are failing

2014-12-15 Thread John Mark Vandenberg
Done. On Mon, Dec 15, 2014 at 3:20 PM, Ricordisamoa wrote: > Xqt made gerrit:178796 not depend on gerrit:179591 anymore. > The latter should be merged, or the former should be reverted, because of > failing tests. > I remember this already happened some time ago. Please do not remove > dependenci

Re: [Pywikipedia-l] Pybot on Wikia

2014-12-12 Thread John Mark Vandenberg
On Fri, Dec 12, 2014 at 10:18 PM, Bináris wrote: > > 2014-12-12 14:24 GMT+01:00 John Mark Vandenberg : >> >> Ugh. It is all about compat :/ > > > Compat is nice and delicious. :-) > I was proud to find some of my own contributions there, but the whole thing > doe

Re: [Pywikipedia-l] Pybot on Wikia

2014-12-12 Thread John Mark Vandenberg
Ugh. It is all about compat :/ On Fri, Dec 12, 2014 at 9:16 PM, Ricordisamoa wrote: > Just found this :-) > > ___ > Pywikipedia-l mailing list > Pywikipedia-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > -- Joh

[Pywikipedia-l] Another RFC: 2.0 packaging

2014-11-29 Thread John Mark Vandenberg
Hi, There are a few aspects of packaging which will benefit from more brains and a collective decision we can all live with, both in the short term for '2.0' and what we want long term (e.g. '2.1', etc). I would appreciate assistance with... https://www.mediawiki.org/wiki/Requests_for_comment/py

Re: [Pywikipedia-l] "results" in APIQuery?

2014-11-20 Thread John Mark Vandenberg
On Thu, Nov 20, 2014 at 6:13 AM, Mpaa wrote: > I would like to have a real example where this line and the following are > used: > - > https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/data/api.py#L1474 That is used for list=querypage. https://en.wikipedia.org/w/api.php?action=qu

Re: [Pywikipedia-l] Pywikobot and phabricator

2014-11-14 Thread John Mark Vandenberg
On Sat, Nov 15, 2014 at 2:12 AM, Andre Klapper wrote: > Hi, > > On Fri, 2014-11-14 at 11:39 +0330, Amir Ladsgroup wrote: >> If you are using the mailing list (pywikipedia-bugs) to track bugs you >> don't need to worry, All of the phabricators e-mails will go through >> the old mailing list and won

Re: [Pywikipedia-l] Pywikobot and phabricator

2014-11-14 Thread John Mark Vandenberg
On Fri, Nov 14, 2014 at 2:23 PM, Bináris wrote: > In a lucky case we will loose the tracked e-mail threads again. Once on SF > when I opened a new bug or contributed to one, I immediately marked the > e-mail coming from SF with a label, and in Gmail all subsequent mails were > automatically marked

Re: [Pywikipedia-l] pep257 docstring style checker

2014-11-05 Thread John Mark Vandenberg
On Thu, Oct 30, 2014 at 6:54 AM, John Mark Vandenberg wrote: > The entire codebase now passes a mandatory jenkins job > (pre-code-review) , which requires valid docstrings except for > functions and methods. > > Thanks to everyone involved in bringing the documentation up t

Re: [Pywikipedia-l] running bot on Labs

2014-11-02 Thread John Mark Vandenberg
Hi Rubin, You mentioned "wikipedia.py" in your email; are you using compat for these tasks? On Sun, Nov 2, 2014 at 3:46 PM, rubin.happy wrote: > Hello! > > I set up my bot on Labs and use shared repo of pywikibot. > That's why I am interested in 2 options: > > 1) how can I define which file shou

Re: [Pywikipedia-l] pep257 docstring style checker

2014-10-29 Thread John Mark Vandenberg
The entire codebase now passes a mandatory jenkins job (pre-code-review) , which requires valid docstrings except for functions and methods. Thanks to everyone involved in bringing the documentation up to this standard. There is still lots to do, like adding docstrings for functions and methods;

Re: [Pywikipedia-l] how to track a bug

2014-10-03 Thread John Mark Vandenberg
On Fri, Oct 3, 2014 at 1:29 PM, Manpreet Kaur wrote: > Hi! I am new to pywikibot and have been going through > installation/contribution articles. I have two questions: > 1. What is the difference b/w pywikibot-core/compat and core/compat? Do i > need to install both? Repeating what Amir and Fabi

Re: [Pywikipedia-l] Interested in opw Round 9 pywikibot

2014-09-15 Thread John Mark Vandenberg
Hi Tessy, A fun 'big one' is 'badtoken' handling. It would be fantastic to even build a test case which reliably causes the error, after which it is pretty much solved ;-) https://bugzilla.wikimedia.org/show_bug.cgi?id=59678 There are a few other network problems if that is your thing. Here is

Re: [Pywikipedia-l] Means to generate a list of pages with redlinks

2014-09-07 Thread John Mark Vandenberg
On Mon, Sep 8, 2014 at 10:45 AM, Wiki Billinghurst wrote: > For English Wikisource, I have a series of 63 volumes of the "Dictionary of > National Biography" that have now been transcribed. ... > I am trying work out how to use pywikibot to generate a list of the pages > with red links. I am gues

Re: [Pywikipedia-l] Rework on Page.text()

2014-09-05 Thread John Mark Vandenberg
On Wed, Sep 3, 2014 at 2:29 AM, Sorawee Porncharoenwase wrote: > I propose this change: > > - set `page.text` to `None` to discard changes Doesn't the page.text setter already do this? > - delete `page.text` to reload content -- equivalent to get(force=True) del page.text already removes the ca

Re: [Pywikipedia-l] welcome.py and -break

2014-08-31 Thread John Mark Vandenberg
On Sun, Aug 10, 2014 at 8:08 PM, Amir Ladsgroup wrote: > For me it breaks with or without -break: > ladsgroup@tools-dev:~/core-clean$ python pwb.py welcome -lang:fa > Traceback (most recent call last): > File "pwb.py", line 157, in > run_python_file(fn, argv, argvu) > File "pwb.py", line

[Pywikipedia-l] flake8 and nose tests on new patches

2014-08-18 Thread John Mark Vandenberg
Thanks to many of you who have worked on the flake warnings over the last few months, the code base now has zero flakes, and thanks to hashar a 'flake8' job now votes against any changeset which has flakes. Also, nose tests are also run for every changeset before the code is merged, but only the t

Re: [Pywikipedia-l] i18n in Pywikibot

2014-08-14 Thread John Mark Vandenberg
On Thu, Aug 14, 2014 at 8:00 PM, Amir Ladsgroup wrote: > Hello, > Yesterday after some talks in IRC we thought It would be good if we > kill off the i18n submodule and bring the files into core, compat will > have the i18n folder but won't receive any updates. One of major > advantage of this acti

Re: [Pywikipedia-l] dropping support for Python 2.6

2014-08-08 Thread John Mark Vandenberg
On Fri, Aug 8, 2014 at 5:06 AM, Ricordisamoa wrote: >> Il 07/08/2014 23:48, John Mark Vandenberg ha scritto: >> >>> On Fri, Aug 8, 2014 at 4:37 AM, Ricordisamoa >>> wrote: >>> >>> py2.6 tests on Travis-CI are now allowed to fail, meaning that we

Re: [Pywikipedia-l] dropping support for Python 2.6

2014-08-07 Thread John Mark Vandenberg
On Fri, Aug 8, 2014 at 5:06 AM, Ricordisamoa wrote: > What about adding the Python version to the User-Agent? Yes, we discussed that in the last py 2.6 thread, but not in the user-agent thread as I recall. Now included in a related patch: https://gerrit.wikimedia.org/r/#/c/152200/ -- John Van

Re: [Pywikipedia-l] dropping support for Python 2.6

2014-08-07 Thread John Mark Vandenberg
On Fri, Aug 8, 2014 at 4:37 AM, Ricordisamoa wrote: > py2.6 tests on Travis-CI are now allowed to fail, meaning that we are, > actually, supporting only 2.7+. I would prefer to say that we've made py 2.6 a second tier supported platform. ;-) When we add py 3 support, py 2.6 would drop down to th

Re: [Pywikipedia-l] Two issues

2014-08-07 Thread John Mark Vandenberg
On Fri, Jul 18, 2014 at 1:40 PM, Amir Ladsgroup wrote: > I made a patch to add any customized user agent and (username would be > default) and if the person doesn't want to add any user agent, they just can > set it to " " > > https://gerrit.wikimedia.org/r/#/c/147381/ This was merged a week ago.

Re: [Pywikipedia-l] archivebot-older-than

2014-08-06 Thread John Mark Vandenberg
On Wed, Aug 6, 2014 at 11:59 PM, Ricordisamoa wrote: > > Il 06/08/2014 12:56, Merlijn van Deen ha scritto: > > Siebrand confirms: we should change it in code, and tw.net will pick it up. > > Merlijn > > Thanks a lot! Filed gerrit:152138 and gerrit:152139. Both merged. https://gerrit.wikimedia.or

[Pywikipedia-l] 21 easy script fixes to help our build system

2014-08-03 Thread John Mark Vandenberg
The following shows a list of 21 easy fixes to scripts, which will help our build system be able to do basic sanity checks on these scripts after each patch is merged. https://bugzilla.wikimedia.org/showdependencytree.cgi?id=69069&hide_resolved=0 The only 'hard' one in there is 68797, as it requi

Re: [Pywikipedia-l] The build is broken

2014-08-01 Thread John Mark Vandenberg
Recently we had a few cases of code that didnt compile getting merged (I have +2 some of them.. :/), so I have fast tracked the addition of a set of tests which run every script with -help , and with -simulate. These new tests add about 3 minutes to the test suite execution, and add basic validatio

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

2014-07-31 Thread John Mark Vandenberg
On Fri, Jun 13, 2014 at 10:10 AM, Ricordisamoa wrote: > Please sign off a Code-Review+1 for > https://gerrit.wikimedia.org/r/#/c/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 wh

[Pywikipedia-l] Minimum supported mw versions

2014-07-28 Thread John Mark Vandenberg
What is the minimum supported mw version for core and compat? It looks like the lowest family version() are.. core: lockwiki with 1.15.1 (not confirmed as special:version requires registration) compat: wesolve with 1.5.7, loveto with 1.8.2, and then wikitravel_shared with 1.10.1 and mozilla with 1

Re: [Pywikipedia-l] new "version" item on Bugzilla

2014-07-26 Thread John Mark Vandenberg
I disagree with adding 'both'. I think we should use the whiteboard, or a tracking bug, for core bugs inherited from compat and the fixes therefore need backporting. On Sun, Jul 27, 2014 at 7:35 AM, Ricordisamoa wrote: > Currently, the "Version" field of our bugs can only be set to one of "compa

Re: [Pywikipedia-l] The build is broken

2014-07-26 Thread John Mark Vandenberg
On Sat, Jul 26, 2014 at 10:39 PM, Ricordisamoa wrote: > > The build is still broken, but because of this edit, that breaks the > timestamp detection of the ArchiveBot. > Maybe a fictitious, write-protected talk page should be used? That is being tracked on https://bugzilla.wikimedia.org/show_bu

[Pywikipedia-l] The build is broken

2014-07-25 Thread John Mark Vandenberg
The build was repeatedly broken over the last week. Two of the build breakages have been fixed. I think one was caused by changes to WMF site configuration. https://travis-ci.org/wikimedia/pywikibot-core/builds/30824554 And the other caused by merging a fix without checking the tests worked cor

Re: [Pywikipedia-l] new components in Bugzilla

2014-07-25 Thread John Mark Vandenberg
I've created a new bug for a component for all scripts, or "Other scripts". https://bugzilla.wikimedia.org/show_bug.cgi?id=68542 It would be nice if we can break them into a few sets of scripts. "sysop scripts" might be a useful group. "Commons scripts" could be another. -- John Vandenberg __

Re: [Pywikipedia-l] Bug 64881: Port wiktionary tools and move to own repo

2014-07-21 Thread John Mark Vandenberg
Sort of related, I see there is no http://test.wiktionary.org/ ;-( On Tue, Jul 22, 2014 at 1:53 PM, Legoktm wrote: > On 7/21/14, 6:56 PM, John Mark Vandenberg wrote: >> On Tue, Jul 22, 2014 at 8:46 AM, Ricordisamoa >> wrote: >>> .. >>> IMHO compat should

Re: [Pywikipedia-l] Bug 64881: Port wiktionary tools and move to own repo

2014-07-21 Thread John Mark Vandenberg
On Tue, Jul 22, 2014 at 8:46 AM, Ricordisamoa wrote: > .. > IMHO compat should be left with its old version and /wiktionary be added as > submodule in core. I agree with this solution. Could we arrange a hack 'day' when someone familiar with the code is available, and others help get the new rep

Re: [Pywikipedia-l] copyright notices

2014-07-18 Thread John Mark Vandenberg
On Fri, Jul 18, 2014 at 9:26 PM, Ricordisamoa wrote: > Many of our scripts have copyright notices at the top like this > (category.py): > # (C) Rob W.W. Hooft, 2004 > and then: > # (C) Pywikibot team, 2008-2013 > even if most contributors (e.g. Rob W.W. Hooft) are regularly listed in > CREDITS. >

Re: [Pywikipedia-l] Two issues

2014-07-14 Thread John Mark Vandenberg
On Mon, Jul 14, 2014 at 6:59 PM, Bináris wrote: > The bot account itself is not enough until we get a centralized notice for > each userpage wikiwide. The main wiki should be included. hu:user:binbot is > enogh to contact, and an urlencoded username can be easily inserted into the > URL bar of bro

Re: [Pywikipedia-l] Two issues

2014-07-11 Thread John Mark Vandenberg
Re user agents, 2010 was a long time ago from an ops perspective. The need for a user agent is no doubt as strong as in the 2010 edict from Domas, but I would like clarification from ops regarding 'gold standard' before we build something which may no longer be needed by them. On Fri, Jul 11, 201

Re: [Pywikipedia-l] Feedback on pywikibot-core

2014-07-08 Thread John Mark Vandenberg
On Sun, Jul 6, 2014 at 9:14 PM, Amir Ladsgroup wrote: > I made some comments in the talk page. concluding the gzip query, it is definitely occurring. https://gerrit.wikimedia.org/r/#/c/144850/ A discussion about user-agents is on the talk page: https://www.mediawiki.org/wiki/API_talk:Client_code

Re: [Pywikipedia-l] Feedback on pywikibot-core

2014-07-05 Thread John Mark Vandenberg
On Sat, Jul 5, 2014 at 9:19 PM, Amir Ladsgroup wrote: > I think this blog post would help us a lot (it suggests in stream > compression we use zlib instead of gzip) > http://rationalpie.wordpress.com/2010/06/02/python-streaming-gzip-decompression/ > > What do you think? It appears that bug is fix

[Pywikipedia-l] Feedback on pywikibot-core

2014-07-05 Thread John Mark Vandenberg
Likewise, thank you Francis for this evaluation. It is very helpful. Are we sure that gzip isnt occurring by default? I started to investigate this a few weeks ago, and confirmed httplib2 defaults to gzip, but I didnt verify that pywiki core isnt meddling with that default. This is quite import

[Pywikipedia-l] title parts on the command line

2014-06-23 Thread John Mark Vandenberg
Many scripts accept page titles spanning multiple command line arguments, usually put into an array called titleParts and joined together. It is redundant to pagegenerators argument -page:"..." , and a poor equivalent as only one page can be specified with titleParts. Also not using quotes on the

Re: [Pywikipedia-l] Several questions (mainly about guideline)

2014-06-23 Thread John Mark Vandenberg
I dont know much about the history of these decisions, so just my own thoughts... On Wed, Jun 18, 2014 at 12:15 PM, Sorawee Porncharoenwase wrote: > 1) What is the preferable shebang? What I have seen are: > - #!/usr/bin/python (such as scripts/add_text.py) > - #!/usr/bin/env python (such as scri

Re: [Pywikipedia-l] Page delete and protect

2014-06-17 Thread John Mark Vandenberg
On Tue, Jun 17, 2014 at 4:39 PM, Amir Ladsgroup wrote: > I disagree, I wrote lots of codes that deletion is a part of them (e.g. this > [https://www.wikidata.org/wiki/User:Ladsgroup/del.py] > code for deleting items in Wikidata). > Maybe there is one usage of them in core but it has been widely us

Re: [Pywikipedia-l] drop support for python 2.6

2014-06-16 Thread John Mark Vandenberg
On Sun, Jun 15, 2014 at 8:12 PM, Bináris wrote: > > > > 2014-06-15 12:37 GMT+02:00 Maarten Dammers : > >> I was wondering, does the user-agent include the python version? If so, we >> could ask the wmf analytics team to do some logging for us. > > > Currently doesn't, but it is a good idea to impl

Re: [Pywikipedia-l] Page delete and protect

2014-06-16 Thread John Mark Vandenberg
> On 16 June 2014 16:33, John wrote: >> >> Avoiding the headache of re-inventing the wheel across dozens of scripts >> that use that code? There is only one use of Page.protect() , even in compat, so IMO that code should mostly be moved from Page to scripts/protect.py. There is also only one use

[Pywikipedia-l] Page delete and protect

2014-06-16 Thread John Mark Vandenberg
In https://gerrit.wikimedia.org/r/#/c/139792 I noticed that Page.delete() and page.protect() have a lot of user interaction logic which would normally be in a script. e.g. asking a user what actions to take. Also, they set a flag in the site object. i.e. site._noDeletePrompt = True and site._noPr

Re: [Pywikipedia-l] Pywikibot mailing list page redesigned

2014-06-16 Thread John Mark Vandenberg
On Mon, Jun 16, 2014 at 12:23 PM, Amir Ladsgroup wrote: > We can make a new mailing list named pywikibot-l and mass-subscribe > pywikipedia-l members and then close pywikipedia-l > We did this for pywikibot-commits, but the archives would be disconnected > > If you think it's okay to do this with

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

2014-06-15 Thread John Mark Vandenberg
On Fri, Jun 13, 2014 at 2:51 PM, Jeroen De Dauw wrote: > Hey, > >> Are the claims a large part of the network traffic for items you are >> processing? Some client time might be saved by lazy loading the claim >> objects from _content. The claims data is even smaller when using raw >> revisions i

Re: [Pywikipedia-l] Pywikibot mailing list page redesigned

2014-06-15 Thread John Mark Vandenberg
On Sun, Jun 15, 2014 at 2:32 AM, Antoine Musso wrote: > Hello Amir and Quim, > > That looks much much nicer than the default mailman wikipage. > Congratulations! It looks nice. Thanks. Could we change the name of the list to pywikibot-l ? -- John Vandenberg ___

Re: [Pywikipedia-l] Secret management

2014-06-15 Thread John Mark Vandenberg
On Sun, Jun 15, 2014 at 9:25 PM, Merlijn van Deen wrote: > On 15 June 2014 09:19, John Mark Vandenberg wrote: >> >> We have four sets of cleartext passwords (http & proxy & db), and secrets >> such as various API keys and mw cookies and edit tokens. >> >>

[Pywikipedia-l] Secret management

2014-06-15 Thread John Mark Vandenberg
We have four sets of cleartext passwords (http & proxy & db), and secrets such as various API keys and mw cookies and edit tokens. The passwords are stored in two files in clear text (user-config.py and. passwd). Other secrets are in cached api files, etc. I would like to introduce an optional de

Re: [Pywikipedia-l] drop support for python 2.6

2014-06-14 Thread John Mark Vandenberg
On Sun, Jun 15, 2014 at 2:44 AM, Ricordisamoa wrote: > Some tests fail only in py2.6: > https://travis-ci.org/wikimedia/pywikibot-core/jobs/27558463 > (https://gerrit.wikimedia.org/r/139591/ is an attempted fix). If a proper fix for 2.6 cant be found quickly, any use of Wikibase WbQuantity should

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) >

Re: [Pywikipedia-l] getters and setters

2014-06-07 Thread John Mark Vandenberg
I have also found core to be difficult to use in some cases, but it is a much better codebase in general than the 'compat' dumping ground, and I am thankful for the people who have worked hard to bring it to its current state. It is close to being ready for general use. We need more people trying

Re: [Pywikipedia-l] proxy issues and httplib2 update

2014-06-04 Thread John Mark Vandenberg
On Jun 4, 2014 6:16 PM, "Legoktm" wrote: > > On 6/4/14, 1:07 AM, Antoine Musso wrote: > >> Your gerrit remote must be out of date, you can refresh it using either: > > > Err, I don't think that's the case here. There are probably 140 commits that are in httplib2 0.9 that weren't in 0.8. No. There

[Pywikipedia-l] proxy issues and httplib2 update

2014-06-04 Thread John Mark Vandenberg
I've found myself behind a proxy this week, and probably next week, and the proxy support in core is quite broken, which is slowing me down but also giving me something new to work on... To unbreak pywikibot in my current environment, the online git repo version detection needs to be either rewrit

Re: [Pywikipedia-l] Deprecation of compat

2014-06-02 Thread John Mark Vandenberg
On Mon, Jun 2, 2014 at 8:00 PM, Amir Ladsgroup wrote: > Core has one million advantages on compat but easy-installation is not one > of them, a week ago I was trying to teach some bot operators to migrate to > core and there were three main problems: > > 1- core suggests people to make the user-co

Re: [Pywikipedia-l] OrderedDict as a requirement

2014-05-31 Thread John Mark Vandenberg
On Jun 1, 2014 6:44 AM, "Ricordisamoa" wrote: > > Per gerrit:127467 and bug 55882#c5, we should add https://pypi.python.org/pypi/ordereddict as a requirement for installing/using pywikibot. > Any volunteers for a patch? I mentioned on IRC that I could do it, but i didnt get to it before travellin

Re: [Pywikipedia-l] Splitting Wikibase classes

2014-05-31 Thread John Mark Vandenberg
On Jun 1, 2014 7:42 AM, "Ricordisamoa" wrote: > > How about creating a wikibase.py file in the pywikibot/ directory to contain DataSite, WikibasePage, ItemPage, Claim, WbTime, WbQuantity, etc.? > Sounds good to me ___ Pywikipedia-l mailing list Pywikipe

Re: [Pywikipedia-l] problems saving a page with empty text

2014-05-28 Thread John Mark Vandenberg
On Wed, May 28, 2014 at 11:43 AM, Ian Kelling wrote: > My first experience with pywikibot, downloaded core, i wanted to change > a few pages. Immediately ran into an error when trying to set a page's > text to empty. The error message was unhelpful, but I dug through the > source and found the iss