Last modified: 2013-02-21 01:49:03 UTC
While the API allows for viewing properties via the API (see /api.php?action=query&meta=userinfo&uiprop=options), it does not allow for modification of preferences. Preferably, the options could be set individually as opposed to requiring they all be set at once.
Werdna is currently working on redoing the user preferences system in his preferences-work branch. Once he's done, writing an API module to change preferences should be doable; right now the preferences system sucks too much.
Will be trivially doable in preferences-work branch.
Created attachment 6053 [details] Half-done patch This patch is sort of done, but it's broken because you can't call wfMsgExt from API modules.
(In reply to comment #3) > Created an attachment (id=6053) [details] > Half-done patch > > This patch is sort of done, but it's broken because you can't call wfMsgExt > from API modules. > Ignore the profiling changes :/
(In reply to comment #3) > Created an attachment (id=6053) [details] > Half-done patch > > This patch is sort of done, but it's broken because you can't call wfMsgExt > from API modules. > You seem to have forgotten to svn add ApiPreferences.php
Have you got the full "half done" patch Andrew?
Andrew says: "I'm sorry, no."
Lol. I've just realised Bryan you asked Andrew when i was sat next to him. Lol
Comment on attachment 6053 [details] Half-done patch Obseleting patch as it's useless :(
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Bumping this as it would allow for SWMT members and such to set signatures and language globally.
(In reply to comment #11) > Bumping this as it would allow for SWMT members and such to set signatures and > language globally. There is a separate feature request for CentralAuth implementating global preferences so we can set signature, real name, skin, language, anything globally. No need for a preferences-api for that (which would still require someone to write a bot to make a ton of api requests). See bug 14950.
-patch since there is no patch currently
I have submitted a change https://gerrit.wikimedia.org/r/#q,I0d6c654a7354ba77e65e338423952a6a78c1150f,n,z for review.