Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MW API warnings (verbose & annoying) #199

Closed
fredzannarbor opened this issue Oct 30, 2018 · 3 comments
Closed

MW API warnings (verbose & annoying) #199

fredzannarbor opened this issue Oct 30, 2018 · 3 comments

Comments

@fredzannarbor
Copy link

WARNING:mwclient.client:Subscribe to the mediawiki-api-announce mailing list at https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.

WARNING:mwclient.client:Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.

Can we make these go away?

@danmichaelo
Copy link
Member

danmichaelo commented Oct 30, 2018

Ah, yes, thanks for creating an issue about this. It was announced in August, but slipped out of my mind:

https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2018-August/000140.html

I'll try to update mwclient this weekend.

@danmichaelo
Copy link
Member

Updated the Page.text() method to get content from the 'main' slot by default. Which means you can continue to use mwclient as before. Content from other slots can be retrieved using the slot parameter.

The action=edit API doesn't seem to support a slot parameter yet, so I'll have to wait for that.

https://www.mediawiki.org/wiki/Multi-Content_Revisions/Action_API

@danmichaelo
Copy link
Member

Btw. it's included in version 0.9.2, which is on pypi now.

danmichaelo added a commit that referenced this issue Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants