[Pywikipedia-l] SVN: [4879] trunk/pywikipedia/wikipedia.py
rotem at svn.wikimedia.org
rotem at svn.wikimedia.org
Mon Jan 14 07:05:08 UTC 2008
Revision: 4879
Author: rotem
Date: 2008-01-14 07:05:08 +0000 (Mon, 14 Jan 2008)
Log Message:
-----------
Several fixes for the 'mark for deletion' feature, per request.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-01-13 20:38:31 UTC (rev 4878)
+++ trunk/pywikipedia/wikipedia.py 2008-01-14 07:05:08 UTC (rev 4879)
@@ -1967,10 +1967,10 @@
except NoUsername, error:
# user hasn't entered an admin username.
output(str(error))
- if markfordeletion and self.exists():
+ if mark and self.exists():
text = self.get(get_redirect = True)
output(u'Marking the page for deletion instead:')
- self.put(u'{{delete}}\n%s\n----\n\n%s' % (reason, text), comment = reason)
+ self.put(u'{{delete}}\n%s ~~~~\n----\n\n%s' % (reason, text), comment = reason)
return
reason = reason.encode(self.site().encoding())
token = self.site().getToken(self, sysop = True)
More information about the Pywikipedia-l
mailing list