- Jul 31, 2017
-
-
Dan Michael O. Heggø authored
Bumpversion cannot update the release date and trying to remember to update it manually won't work.
-
John Greeley authored
Attempting to fetch a login token will raise an APIError on older MediaWiki versions (tested on v1.20.2), so we need to catch it.
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-
- Jun 11, 2017
-
-
cariaso authored
Retry on nonce errors since these can be caused by temporary cache connection errors.
-
- May 18, 2017
-
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-
- May 17, 2017
-
-
Dan Michael O. Heggø authored
When there's zero results, the method should not yield an empty dictionary. Otherwise counting number of results could be wrong (think `len(list(site.ask('...')))`)
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
-
Michel Bénard authored
-
- May 11, 2017
-
-
Dan Michael O. Heggø authored
-
Michel Bénard authored
The method only returned dictionary keys, not values.
-
Michel Bénard authored
Misplaced parenthesis
-
Dan Michael O. Heggø authored
On read protected wikis, we must make sure that we don't include extra parameters when requesting the login token, or we will get `readapideniederror`. - Remove extraneous `continue` parameter from non-query calls - Remove `userinfo` from `meta=tokens` calls
-
- Apr 29, 2017
-
-
Dan Michael O. Heggø authored
Update the `Page.purge()` method to use the `action=purge` API module that was added in MediaWiki 1.14. Since mwclient requires MediaWiki 1.16 or later, we don't need to also support the old purge method.
-
- Apr 28, 2017
-
-
Dan Michael O. Heggø authored
For MediaWiki >= 1.27, fetch login tokens from the tokens module using `action=query&meta=tokens`.
-
- Feb 23, 2017
-
-
Bryan Davis authored
In 1d617702 the Site.parse() command was changed from GET to POST. This effectively limits the amount of wikitext that can be rendered to what will fit in the URI limit of the webserver serving the MediaWiki site. We could do something really tricky to look at the size of the text argument and switch between GET and POST based on that, but it seems much simpler to just stick with POST for this action. Downstream bug: https://phabricator.wikimedia.org/T158715
- Dec 02, 2016
-
-
Sébastien Santoro authored
Examples should adhere to PEP-8 guidelines, as these examples not only document how to use correctly the client, but also will serve as a first exposition to Python for some contributors. Reference: https://www.python.org/dev/peps/pep-0008/
-
- Nov 10, 2016
-
-
Waldir Pimenta authored
-
- Nov 07, 2016
-
-
Bryan Davis authored
Allow sending custom headers (e.g. X-Wikimedia-Debug) with all requests by passing a dict of header data in the Site constructor.
-
- Oct 24, 2016
-
-
Waldir Pimenta authored
The issuestats service has always been quite fragile, and the badge was often a broken image. Changing to isitmaintained badge, which (appropriately enough) seems to be better maintained.
-
Waldir Pimenta authored
-
Waldir Pimenta authored
fixes #142
-
Waldir Pimenta authored
-
Waldir Pimenta authored
-
Waldir Pimenta authored
-
- Oct 23, 2016
-
-
Waldir Pimenta authored
-
Dan Michael O. Heggø authored
Closes #125
-
Dan Michael O. Heggø authored
- Most importantly, the 'protectedpage' error was missing in the list. - Improve string representation of the error.
-
Dan Michael O. Heggø authored
- When `Site.force_login` is True we can send `assert=true` with `edit` actions to have the api reject our edits if we got logged out for some reason. - Adding a new exception `AssertUserFailedError` as a subclass of `LoginError`.
-
Dan Michael O. Heggø authored
-
Dan Michael O. Heggø authored
Closes #126
-
Dan Michael O. Heggø authored
New implementation of #126
-