Discasto created this task.
Discasto added projects: Pywikibot-core, Commons-Datasets.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Dear friends, I've been using Pywikibot for long in order to handle the reporting tasks of the Spanish editions of the Wiki Loves (Monuments, Earth...) contests. See here, for instance. The output is generated by a Python notebook run from PAWS (I don't know which Pywikibot release it's running, sorry) and deeply relies on pandas and matplotlib for creating the content. The "dataset" contains information about the images being uploaded as part of the contest (see the dataset here). As you can see, I'm using <pre></pre> for showing the content and removing the first and the last line when reading the content to update the reports.

I'm not quite happy with this poor-man CSV approach and when I noticed that there was a way to "properly" store datasets in commons (Tabular Data) I tried to get advantage of it (BTW, handling this Tabular Data from pandas is much harder than doing it from CSV, but it seems to be the new "standard" in the WM projects). However, after creating the JSON structure, turning it into a string and using the regular 'save' method associated to a 'Page', I was not successful at all. See the results in here. It seems as a valid Tabular Data structure (in fact, it's is copied from here (just a row)), but it doesn't show as a valid Tabular Data file and, what's more important, if I try to edit it regularly all I get the following message (and no option to actually edit the page):

Content format not supported.

The content format application/json+pretty is not supported by the content model wikitext.

I've asked the responsible people and the answer is really uninformative.

Have you got the slightest idea of what I'm doing wrong? Please, let me know which additional information you need. Thanks

// Discasto

TASK DETAIL
https://phabricator.wikimedia.org/T188894

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Discasto
Cc: Aklapper, pywikibot-bugs-list, Discasto, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, debt, Reasno, Avicennasis, Base, jayvdb, zhuyifei1999, Dalba, Yurik, Masti, Alchimista, Rxy, Jay8g
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to