Bugs item #1936118, was opened at 2008-04-06 13:10
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=193611…
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: Closed
Resolution: Out of Date
Priority: 7
Private: No
Submitted By: Daniel Herding (wikipedian)
Assigned to: Nobody/Anonymous (nobody)
Summary: Recreating deleted pages failed.
Initial Comment:
How to reproduce: Create a page in your browser, then delete it. Then recreate it using
PyWikiBot. You will get this error message:
File "/home/daniel/projekte/pywikipedia/wikipedia.py", line 1331, in _putPage
raise EditConflict(u'Someone deleted the page.')
EditConflict: Someone deleted the page.
I have then changed this line in Page._putPage():
if '<label for=\'wpRecreate\'' in data:
->
if '<label for=\'wpRecreate\'' in data and not newPage:
But that doesn't completely solve it because of a new MediaWiki feature. I get this
error message:
<p>Benutzer <a href="/wiki/Benutzer:Ureinwohner"
title="Benutzer:Ureinwohner">Ureinwohner</a> (<a
href="/wiki/Benutzer_Diskussion:Ureinwohner" title="Benutzer
Diskussion:Ureinwohner">Diskussion</a>) hat diesen Artikel gelöscht, nachdem
du angefangen hast, ihn zu bearbeiten. Die Begründung lautete: <i>veraltete
bildwarnung</i>
</p><p>Bitte bestätige, dass du diesen Artikel wirklich wieder neu anlegen
möchtest.
</p><br /><input tabindex='1' type='checkbox'
value='1' name='wpRecreate' id='wpRecreate' /><label
for='wpRecreate' title='Wiederherstellen.'>Erneut
anlegen</label>
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date:
2009-02-08 05:50
Message:
works now (with a page that I confirmed had previously existed and been
deleted):
>> import wikipedia
Checked for running
processes. 1 processes currently running, including
the current process.
>> s = wikipedia.getSite()
>> p = wikipedia.Page(s, "User:RussBot/Current list")
>> p.exists()
False
>> p.put("{{db-userreq}}", "Test
edit")
Creating page [[User:RussBot/Current list]]
(302, 'Moved Temporarily', u'')
>> wikipedia.stopme()
>>
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2008-04-06 18:02
Message:
Logged In: YES
user_id=880694
Originator: YES
Some more info on this. I'm working on the German Wikipedia, on the page
[[Diskussion:ICLEI]] which weblinkchecker.py tried to create. The error
that I get is [[MediaWiki:Confirmrecreate]]. A comment in wikipedia.py
says:
# Make sure your system clock is correct if this error occurs
# without any reason!
My system clock is correct.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=193611…