Yes, I might switch to reusing action=edit later once 1.13 gets mainstream.
I didn't realize error codes are string, thanks for the tip - obviously it's
easier to use string as they have some internal meaning and it's easy to
make them unique ;) I'll update the code for the next release.
Maybe I should move this discussion from here to API list.
Thank you,
Sergey
On Thu, May 15, 2008 at 10:47 AM, Roan Kattouw <roan.kattouw(a)home.nl> wrote:
Sergey Chernyshev schreef:
Yeh, that's where I saw it - I'm writing
some Page Object Model API calls
for
Ardorado.com (for now only for working directly with template
parameters).
http://code.google.com/p/mediawiki-page-object-model/source/browse/tags/REL…
Do they look reasonable good along the lines of API call implementations?
I
use 1.11.0 so some useful methods like
dieUsageMsg are not available, but
I'm hoping to upgrade to 1.12.x relatively soon.
Sergey
Looks reasonable. 1.13 will have action=edit in the API, you
might want
to wrap around that for convenience. Also, it's kind of unusual to use
numbers as error codes (the rest of the API uses strings), but there's
nothing really wrong with that.
Roan Kattouw (Catrope)