https://bugzilla.wikimedia.org/show_bug.cgi?id=34733

--- Comment #5 from Krinkle <krinklem...@gmail.com> 2012-02-26 16:04:04 UTC ---
(In reply to comment #4)
> (In reply to comment #2)
> > How about making API calls to some other wiki?
> 
> Right now this module only supports API requests to the local wiki as far as I
> know.

Okay, scrap that. When constructing a new API object there is an option for api
url, defaults to mw.util.wikiScript('api'), but is publicly overridable (and
documented with that intention).

Looks like we do indeed need to keep support for getting them from the API
directly inside the request and cache them in context.

> Also, mw.api.watch is already using user.tokens directly.

We need to change that.

However we can optimize mw.Api for local wiki usage (if url ==
mw.util.wikiScript('api'), cachedToken = mw.user.tokens.get( ... ); ok(); else:
get from api, callback: ok.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to