[Pywikipedia-l] [ pywikipediabot-Patches-1867322 ] Mark pages for deletion, which cannot deleted rightaway.

SourceForge.net noreply at sourceforge.net
Wed Jan 9 17:42:41 UTC 2008


Patches item #1867322, was opened at 2008-01-09 00:54
Message generated for change (Comment added) made by purodha
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1867322&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mark pages for deletion, which cannot deleted rightaway.

Initial Comment:
Category.py can delete category pages when the user chooses so, and when having access to an account with admin privileges.

If it does not have an admin account, it currently does nothing, and the information that the page should be deleted is lost.

A better solution was to mark those pages for later deletion by a human admin, by adding {{delete}} or a localized version thereof.

The attached patch is adding "{{delete}} reason ~~~~" plus a horizontal line, and line ends, to categories that category.py cannot delete because it is having no admin privileges. The SWMT suggest to have {{delete}} at least as a redirect in every WMF wiki, but the name would better be localized, too.

Not that, since the main part of the modification is three lines added to wikipedia.py, other bot programs could use it, too. In order to do so, they need to add a parameter when calling wikipedia.delete() like this:

wikipedia.delete(markfordeletion=u'reason')

where u'reason' must not be empty. It is the wikitext to be put into the page behind "{{delete}}".

----------------------------------------------------------------------

>Comment By: Purodha B Blissenbach (purodha)
Date: 2008-01-09 17:42

Message:
Logged In: YES 
user_id=46450
Originator: YES

I did nor want to change the default behaviour. --Purodha

----------------------------------------------------------------------

Comment By: Daniel Herding (wikipedian)
Date: 2008-01-09 17:08

Message:
Logged In: YES 
user_id=880694
Originator: NO

This is a good idea. However, why do we need a special parameter
"markfordeletion"? The "reason" parameter should be OK for this. This is
simpler and works without modifying existing bots. --Daniel

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1867322&group_id=93107



More information about the Pywikipedia-l mailing list