If I recall corectly mediawiki uses the timestamp of the .get() however
just redoing the .get() right before the .put() will just overwrite the
changes made by the other user instead of merging them. You would need to
re-manipulate the text object and re-do all of all of your changes.
On Sat, Feb 17, 2018 at 7:47 AM Bináris <wikiposta(a)gmail.com> wrote:
I mean <long computing> lasts 30 hours, so I
*really *don't want edit
conflicts, and I got 2 during tests, because of frequent edits.
2018-02-17 12:12 GMT+01:00 Bináris <wikiposta(a)gmail.com>om>:
Hi,
I have
target = pywikibot.Page(site, uploadPage)
oldtext = target.get()
<long computing>
target.put(pretext + text, uploadComment)
pywikibot.exceptions.EditConflict: An edit conflict has occured.
So, is the likelihood of an edit conflict connected to elpased time
between instantiation and put(), or between get() and put()?
Is it useful to reinstantiate the page?
Is it useful to give a second chance to put() in case of edit conflict,
or loop it?
--
Bináris
--
Bináris
_______________________________________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot