Mpaa added a comment.
You can start from here: https://www.mediawiki.org/wiki/Manual:Pywikibot/DevelopmentTASK DETAILhttps://phabricator.wikimedia.org/T188894EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MpaaCc: Yurik, Mpaa, Aklapper, pywikibot-bugs-list, Di
Discasto added a comment.
Hi all, I've successfully posted TabularData through pywikibot following your code :-) However, I haven't used "contentmodel" (as such contentmodel is not supported) but only "contentformat" (set to "application/json"). That is, simply overwriting the save() method with
k
Mpaa added a comment.
I do not know about Tabular Data. However, it would be nice to expand the library with new features.
Not having the possibility of getting different contentmodel/format is a Pywikibot limitation which would be nice to remove.
If you feel like to 'standardize' your new class w
Discasto added a comment.
Thanks for the info, Mpaa. I guess a can derive a basic saver for Tabular Data from your proofreadpage.py following Yurik statements. I'll let you know whether it works. On the other hand, reading is not actually a problem, I think I can use the MediaWiki API to retrieve t
Yurik added a comment.
I replied to https://www.mediawiki.org/w/index.php?title=Topic:U8qudxbgf2xujfsw&topic_showPostId=u8rrlm6pbjgyg7gz&fromnotif=1#flow-post-u8rrlm6pbjgyg7gz -- take a look at this example -- you need to set "contentmodel": "Tabular.JsonConfig"TASK DETAILhttps://phabricator.wikime
Mpaa added a comment.
You are not doing anything wrong.
Page() class does not support all values of:
- rvcontentformat: Serialization format used for rvdifftotext and expected for output of content.
One of the following values: text/x-wiki, application/json, text/plain, text/_javascript_, text/css