Jools Smyth schreef:
> I am slightly confused over the editing of a page and avoiding a conflict
> using the api.
>
> The documentation says
>
> "To edit a page, an edit token is required. This token is the same for all
> pages, but changes at every login. If you want to protect against edit
> conflicts (which is wise), you also need to get the timestamp of the last
> revision. You can obtain these as follows:"
>
> And I had implemented this literally, so that on submitted the edit, I
> first get the timestamp of the very last revision and then submit my
> changes. But I assume I really need to
>
> Get page contents and store the timestamp - make some changes to the page.
> when I edit pass my timestamp back to the API.
>
> Is this correct? If so, maybe the documentation would be better to say
> "you also need the timestamp of the revision your edits are based on" ?
Isn't "the revision your edits are based on" the same revision as "the 
last revision"? You're really just saying the same thing twice, but 
using different wordings.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to