- 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
-
Dan Michael O. Heggø authored
- move stuff out of while loop that doesn't need to be there - make url in one step
-
- Oct 17, 2016
-
-
Waldir Pimenta authored
-
- Oct 10, 2016
-
-
Dan Michael O. Heggø authored
Use MANIFEST.in to specify that LICENSE.md should be included in the source distribution. Fixes #140
-
- Sep 22, 2016
-
-
Nicolas Bareil authored
-
- Sep 20, 2016
-
-
Waldir Pimenta authored
otherwise the logo gets awkwardly separated from the title
-
Waldir Pimenta authored
PR #136 fixes #88
-
- Aug 23, 2016
-
-
Dan Michael O. Heggø authored
To avoid stuff like #135 from happening, make it more transparent what's going on in `List.__next__` by - replacing the check for `full=True` with `isinstance(self, GeneratorList)` - replacing the recursive call to `List.__next__` with `item = six.next(self._iter)`. This means one line of code is duplicated, but I think it's pays of in term of readability.
-
Dan Michael O. Heggø authored
-