Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Page Object Model API calls Was: How to create the article from the context of the originating Wiki in another one?

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


wikitech-l at antispam

May 15, 2008, 8:08 AM

Post #1 of 1 (59 views)
Permalink
Page Object Model API calls Was: How to create the article from the context of the originating Wiki in another one?

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[at]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_0_1_2/PageObjectModel.php
> >
> > 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)
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.