Revision: 6176
Author: purodha
Date: 2008-12-21 13:08:31 +0000 (Sun, 21 Dec 2008)
Log Message:
-----------
Parameters to {{delete}}, their meanings, and order, vary from
one Wikipedia to another. You cannot use them globally, that
never would work everywhere.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-12-21 09:08:59 UTC (rev 6175)
+++ trunk/pywikipedia/wikipedia.py 2008-12-21 13:08:31 UTC (rev 6176)
@@ -2314,7 +2314,9 @@
if mark and self.exists():
text = self.get(get_redirect = True)
output(u'Cannot delete page %s - marking the page for deletion
instead:' % self.aslink())
- self.put(u'{{delete|%s}}\n%s ~~~~\n----\n\n%s' % (reason,
reason, text), comment = reason)
+ # Note: Parameters to {{delete}}, and their meanings, vary from one
Wikipedia to another.
+ # If you want or need to use them, you must be careful not to brake
others. Else don't.
+ self.put(u'{{delete}}\n%s ~~~~\n----\n\n%s' % (reason, text),
comment = reason)
return
else:
raise
Show replies by date