https://bugzilla.wikimedia.org/show_bug.cgi?id=60442
Web browser: --- Bug ID: 60442 Summary: Inconsistent arguments comment/reason/summary for edit messages Product: Pywikibot Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: pyfisch@googlemail.com Classification: Unclassified Mobile Platform: ---
When editing, deleting or protecting a page you can add a message. This message is passed to the methods of the Page object or one of its subclasses. The name of the argument is always different, when editing a page or changing a category it is "comment" when protecting, moving or deleting it is "reason". In site.py it is always "summary", like in the MediaWiki api.
In some scripts like for example category.py they use "editSummary" internall, eg. in category.py.
Scripts that have a commandline parameter for an edit summary (always?) call it "-summary".
I propose to change all "reason" and "comment" arguments to "summary" because this is the term used in site.py, in script commandline parameters and by MediaWiki itself.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60442
pyfisch@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |core (2.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=60442
--- Comment #1 from Ricordisamoa ricordisamoa@live.it --- This messy behavior originates in the MediaWiki API:
* "reason" is used to make actions that will be logged: [[mw:API:Delete#Parameters]], [[mw:API:Protect#Parameters]], etc. * "summary" is used when editing: [[mw:API:Edit#Parameters]] * "comment" is used when getting data (both revisions and logs): [[mw:API:Properties#Revisions:_Parameters]], [[mw:API:Logevents#Parameters]]
https://bugzilla.wikimedia.org/show_bug.cgi?id=60442
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |70936
pywikipedia-bugs@lists.wikimedia.org