Revision: 7161
Author: alexsh
Date: 2009-08-17 17:57:39 +0000 (Mon, 17 Aug 2009)
Log Message:
-----------
Page()._putPage(): fix pagedelete and newpages parameters
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-08-16 18:02:05 UTC (rev 7160)
+++ trunk/pywikipedia/wikipedia.py 2009-08-17 17:57:39 UTC (rev 7161)
@@ -1525,8 +1525,10 @@
# Which web-site host are we submitting to?
if newPage:
output(u'Creating page %s' % self.aslink())
+ params['createonly'] = 1
else:
output(u'Updating page %s' % self.aslink())
+ params['nocreate'] = 1
# Submit the prepared information
try:
response, data = query.GetData(params, self.site(), back_response =
True)
@@ -1612,6 +1614,7 @@
# without any reason!
# raise EditConflict(u'Someone deleted the page.')
# No raise, simply define these variables and retry:
+ params['recreate'] = 1
if self._editTime:
params['basetimestamp'] = self._editTime
else:
Show replies by date