[12:42:50] hello..I was using query API to query pages not patrolled on zhwp with python but an error occured with message"you need patrol or patrolmark right to request.. I think I have already clientlogined..May anyone help me.. [12:55:47] Hamishcn: perhaps your account doesn't have the patrol rights on zhwiki? [12:56:07] that right is usually reserved to the autoconfirmed group [12:56:14] I confirm I have [12:56:33] I have both patrol and rbk [12:56:47] then you are probably not logged in [12:57:05] how are you calling the api? [12:57:34] software or syntax? [12:58:21] via requests in python [12:58:21] software/library [12:58:41] not using pywikibot? [12:58:50] nope [12:58:53] just requests [12:59:11] you have to send the cookies you got from login [12:59:14] are you doing that? [12:59:36] send cookies? [12:59:54] no i didnt [13:00:01] yes. if you do this manually, you'll have to understand how http cookies and session handling works [13:00:31] let me say my idea first [13:00:40] http://docs.python-requests.org/en/master/user/quickstart/#cookies [13:00:59] http://docs.python-requests.org/en/master/user/advanced/#session-objects [13:01:15] or use pywikibot [13:01:51] i want to check unptrld pages on zhwiki with api and then output that to a string [13:02:28] is pywikibot easier to use? [13:02:35] yea. and to access the patroll status, you need patrol rights. and you only have those rights after logging in. and you only stay logged in if you send your session cookie. [13:03:18] pywikibot does all of this for you, and has abstractions for handling api calls. but for a simpel thing like this, it may be overkill to set up and understand. [13:03:42] but if you plan to do more api based stuff from the command line, learning pywikibot is probably a good idea [13:03:50] the alternative is to learn about cookies and sessions. [13:04:18] https://en.wikipedia.org/wiki/HTTP_cookie#Session_management [13:06:22] in a word , if i have any other plan to use other api , i`d better to use pywikibot . right? [13:07:09] probably, yes [13:08:16] briefly read about how sessions work though, it's quite enlightening, and simpel enough :) [13:08:28] ok i got it , and thank you [13:08:33] very thank you [13:08:53] it'S the sort of background knowledge that makes error messages less confusing, and keeps you safe(er) from hacks. [13:09:00] yw [13:09:59] well, i`ll go to read that now .. [13:10:13] thanks again for your help [14:38:07] How do I keep resourceloader from minimizing an objectname? [14:47:57] RoanKattouw: Hey, for when you have a little bit of time, please take a look at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/445179 and the bug: https://phabricator.wikimedia.org/T199334 [15:17:14] nm, found it on the RL for devs page [19:10:48] Found issue where VE does not display the current content for a transcluded subpage. On the page https://www.mediawiki.org/wiki/Meza, the section under "Requirements" is a transclude {{:Meza/Requirements}} Even though I manually visited &action=purge on both the parent page, and the transcluded subpage (to clear any cache of the content), VE still shows older content for that section (and if you click on it, it [19:10:49] tells you that it's a template) [19:11:23] I editted the source of the transcluded page, but wonder if this is a known issue? [19:12:39] It's not that VE allows you to do something /wrong/, but when you hit 'edit', the content displayed on the page is different from the content displayed when action=read. [21:54:00] freephile[m]: perhaps some cache somewhere was not cleared… i think there was some job queue issues earlier today, so that might be a reason [21:54:18] freephile[m]: please file a task if this doesn't fix itself? [21:54:54] i actually see up-to-date contents of that template when editing right now [23:05:44] Thanks MatmaRex: I'll see if it's just transient, or else file a Phab task. [23:42:43] MatmaRex: It looks like it was a transient issue due to the jobs queue. The expected behavior is observed now: namely action=view content is the same as veaction=edit content