[02:48:39] Hi, I ran into merge conflict here. Any suggestions? https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/CheckUser/+/464472/ [15:00:21] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @Thiemo_WMDE & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:50:17] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @Thiemo_WMDE & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:57:28] * ankry is waiting... [16:00:44] Welcome to the technical advice IRC meeting! [16:00:49] o/ [16:01:03] hey [16:01:09] hi [16:01:18] thank you for doing this :) [16:01:18] Hi TAIM people! [16:01:29] 'TAIM'? [16:01:29] I have problem with 2010 toolbar: [16:01:32] Hi! [16:01:35] may I ask? [16:02:23] the ProofreadPage extension creates submenu/buttons in the toolbar [16:02:32] I wanto to modify them. How to wait until the extensions creates the buttons? [16:02:38] Evening everyone, this is my first time attending the technical meeting. [16:02:38] I do have a question about the pywikibot, is it OK if I asked? [16:02:49] This code does not work: https://pl.wikisource.org/wiki/Wikiskryba:Zdzislaw/common.js [16:02:59] maheveotm welcome, of course! [16:03:25] any hints? [16:03:43] I'm afraid PyWikiBot people are currently not here, or are you able to say something about it, chiborg? [16:03:56] chiborg: than you very much! [16:03:58] I'm looking for some guidance on how to customize Vector (example: add bootstrap/bulma/ support) [16:04:09] Thiemo_WMDE: ow. [16:04:25] ankry you'd need to listen to a "hook" event in javascript instead of executing your code right away. [16:04:49] ankry I'll look into it and give you some hints. [16:05:27] mahveotm_ not sure if i'm able to help you, have used pywikibot last in 2015. But ask away. [16:05:27] chiborg: the pp js code that creates the butons is here: https://github.com/wikimedia/mediawiki-extensions-ProofreadPage/blob/master/modules/page/ext.proofreadpage.page.edit.js [16:05:47] maybe it needs to be modifiet to create the hook? [16:06:28] chiborg: I've recently just unzipped the pywikibot core on a windows machine but i'm having some sort of issues getting to install it, when trying to generate user configuration file with this command ''python pwb.py generate_user_files'', I keep getting this error message ''python: can't open file 'pwb.py': [Errno 2] No such file or directory'', please what am I possibly doing wrong. [16:07:20] ankry: It seems the only chance you have is to make sure your code is executed later, somehow. Utilizing one of the hooks MediaWiki provides in JavaScript might be helpful. [16:08:04] ankry: mw.hook( 'wikipage.content' ).add( function ( $content ) { … maybe? [16:08:12] Thiemo_WMDE: it would be nice to see an example hoe to use them [16:08:16] thx [16:09:16] Thiemo_WMDE do you know of a page similar to https://www.mediawiki.org/wiki/Manual:Hooks/ (which is PHP only) for the JavaScript hooks? [16:09:19] mahveotm_: make sure you are executing the command in the correct directory [16:09:49] Thiemo_WMDE: I want to remove sth that the extension creates as it takes too much space on the screen; and in useful for newbies only [16:10:27] zhuyifei1999_: maybe some W10 permission problem? [16:10:30] i.e. generate_user_files.py should be in your current directory [16:12:33] ankry: I don’t think EACCES would show as ENOENT. I could be wrong [16:13:54] can someone show me some lights on how to have custom logins (ex: github/patreon/etc) on one's wiki? [16:13:54] mahveotm_ How do you start the command? Are you in the command line and did you cd into the directory that contains pwb.py ? [16:14:58] psiconauta You mean Oath or more in general? [16:15:06] OAuth [16:15:11] yes [16:16:16] psiconauta you could try the https://www.mediawiki.org/wiki/Extension:OAuth2_Client extension [16:16:39] ohhh niiice [16:16:47] For a more generailized approach/API you could have a look at https://www.mediawiki.org/wiki/Extension:PluggableAuth or https://www.mediawiki.org/wiki/Extension:Auth_remoteuser [16:17:04] it depends on your use case. [16:17:15] yeah [16:17:28] have a bunch for read [16:17:29] ty [16:18:54] chiborg: yes, that was What's did, wrong? [16:19:49] mahveotm_ no, sounds right. Just be sure - if you do a `dir` command there, does it show you pwb.py? [16:22:05] chiborg: nope, it doesn't show pwb.py, only shows pywikibot with no extension [16:22:44] ah. and if you do `cd pywikibot` and then `dir` again, does it appear then? [16:24:50] chiborg: error, directory name is invalid. [16:24:50] I guess there's an issue with my installation but I don't know how to go around it. [16:26:27] zhuyifei1999_: please how do I go around the directory please. I unzipped it in downloads. [16:28:31] mind pasting the output of dir to somewhere like pastebin or dpaste.de and link the paste here? [16:32:17] zhuyifei1999_: heres the link dpaste.de/s1DA [16:33:12] uh, cd to the path of pywikibot [16:33:55] in explorer, in the path bar, you see something like “C:\blah\blah\pywikibot” right? [16:35:03] cd to it like cd “C:\blah\blah\pywikibot” [16:36:01] (you have to retype those double quotes; for some reason my phone refuse to type ascii double quotes) [16:47:11] zhuyifei1999_: Hi, I've done that multiple times, but the error '''C:' is not an internal or external command, blah blah blah occurs [16:47:29] can you paste the command and output? [16:49:11] here C:\WINDOWS\system32>''C:/Users/Marvellous/Downloads/core/pywikibot/'' '''C:' is not recognized as an internal or external command, operable program or batch file. [16:50:26] You're missing cd at the start [16:50:37] cd "C:/Users/Marvellous/Downloads/core/pywikibot/" [16:50:43] Also you're using two of ' instead of " [16:53:40] cd C:\Users\Marvellous\Downloads\core\pywikibot [16:53:53] \, not / if this is Win* [16:54:11] quotes may be omitted if no space in names [16:59:19] Thanks everyone, I got in without any error [17:01:14] However, the "Downloads" directore is not the best place for permanent instalation [17:01:40] Thanks everyone for participating, asking questions and helping out in the Technical Advice IRC Meeting. See you! [17:01:45] My download directories persist a long time... [17:02:17] if nobidy cleans it it mat be OK... [17:03:11] if reaching low disk space, the system may wich to clean it... [17:03:19] *wish [17:04:08] which is a really bad idea. the system should ask first [17:04:15] asks [17:05:28] but default option is to clen this dir; advanced user will know what they have there