Last modified: 2014-10-18 09:00:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74207, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72207 - detect write api actions
detect write api actions
Status: NEW
Product: Pywikibot
Classification: Unclassified
network (Other open bugs)
core-(2.0)
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-18 07:23 UTC by John Mark Vandenberg
Modified: 2014-10-18 09:00 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-10-18 07:23:06 UTC
(Cloned from bug 55068 comment 10)

pywikbot api.py has a hard-coded list of 'write' actions, which cause it to assert the user is logged in.

This should be converted to a detection algorithm (using API action paraminfo)
Comment 1 Ricordisamoa 2014-10-18 09:00:34 UTC
Ideally, a persistent cache should be set up to remember the 'paraminfo' data.

For example, the "writerights" property would enable assertion, while "tokentype" would help guessing the required token type automatically.

E.g.:
https://www.mediawiki.org/w/api.php?action=paraminfo&modules=thank

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links