[08:01:43] hi, is there a option to write extensions in JS to huggle (rather than c++ or python)? it can be useful to reuse users scripts/gadgets code [08:15:55] [02huggle3-qt-lx] 07benapetr pushed 031 commit to 03master [+0/-0/±1] 13http://git.io/EA2aBw [08:15:57] [02huggle3-qt-lx] 07benapetr 0358308be - resolved login bug (enable:true is missing) the pointer to config was set to home wiki instead of current project [08:23:28] 3Huggle / 3Application: Writing extensions in JS - 10https://bugzilla.wikimedia.org/70160#c1 (10Peter Bena) p:5Unprio>3Lowest s:5normal>3enhanc some suggestion how would that be done? is there some open source cross platform JS interpretor library for C or C++? [08:32:43] 3Huggle / 3Application: Writing extensions in JS - 10https://bugzilla.wikimedia.org/70160#c2 (10Eran Roz) https://code.google.com/p/v8/ ? [08:36:00] 3Huggle / 3Application: Writing extensions in JS - 10https://bugzilla.wikimedia.org/70160 (10Eran Roz) 3NEW p:3Unprio s:3normal a:3Peter Bena It should be possible to write extensions to Huggle also in JS rather than c++ and python. Some advantages of doing so: 1. It could be awesome to reuse gadgets... [08:40:24] eranroz: no it's currently not possible, but it's important to note that so far nobody, except for huggle devs made a single attempt to create any extension so far :P [08:40:45] so this really has low priority as people don't really want to create extensions [08:40:49] because it is complicated ;) [08:40:52] JS is easier [08:40:59] easier than python? [08:41:09] I am not really sure... python is super simple [08:41:20] yes, because I can port code already written as gadgets [08:41:48] which gadget for example would you like to have in huggle [08:41:56] for exampel in hewiki it is uncommon to use {{delete}} tempalte, because adminstrators than have to check the history of a page [08:41:56] (there is more than 1 version in that case) [08:42:30] and we use WP:requests from admins [08:42:31] so there is a gadget that already adds this request the page [08:42:49] ^^ [08:43:01] you mean that instead of tagging a page for deletion, you insert something to some page? [08:46:11] i may have to do some changes to the code, but it would bassically be almost the same [08:46:12] yes [08:46:12] (this should be part of huggle/core of course, as it is very specfic to hewiki) [08:46:12] the gadget also knows the specific section in the page it should add the request [08:46:12] shouldn't* [08:46:13] BTW writting python extensions isn't as simple, as there is different process to compile them [08:47:31] you don't compile python [08:47:38] it's interpreted langauge [08:47:47] just like JS [08:48:50] i mean the import huggle part [08:54:24] petan, BTW i failed to compile after ./configure --python [08:54:24] huggle/pythonengine.cpp:469:16: error: ‘PyModuleDef’ does not name a type [08:54:26] am I missing dependency? (configure didn't tell) [09:07:58] (ok found... I dont see PyModuleDef is python2.7 include dir, only in ver3 include dir) [09:31:38] eranroz: yes, you need to have python3-dev, also you should have cmake 3.0.0 or newer if you want to compile huggle with python [09:32:31] ok i can change huggle to use python 2.7 ;) [09:32:37] pywikibot use 2.7 [09:33:22] [02huggle3-qt-lx] 07benapetr pushed 031 commit to 03master [+0/-0/±1] 13http://git.io/QU--Tw [09:33:23] [02huggle3-qt-lx] 07benapetr 03c2e1020 - inserted cmake 3.0.0 which is needed to build with python on most platforms [09:33:49] eranroz: that is definitely a bad idea [09:34:02] y? [09:34:05] there was a number of pythonists blaming me for using python 2.7 in past [09:34:19] they said I must use python 3 because that is only good python [09:34:25] you should really discuss this with them :P [09:34:59] (this is idelogical war im not getting into...) but we can be compatible with both 2.7 and 3 [09:35:24] i will not document it... hidden feature... [09:35:39] if you can make it compatible with both, I don't mind [09:35:50] but keep in mind that python code for 2.7 and 3 is not compatible [09:35:55] so some extension wouldn't work [09:36:17] it's pretty much a different language, IMHO they should rename it from python to something else [09:37:14] !why_python_3 is http://github.com/huggle/huggle3-qt-lx/issues/31 [09:37:15] Key was added [09:56:49] petan, 1. are there python extensions for huggle3 except huggle_logs.py ? 2. where should i place the python code for the extension in development environment? [09:57:23] (should it be in huggle_release/extensions? or huggle/extension_list/extension.py ?) [14:41:47] Change on 12meta_wiki a page Huggle/Download/fa was created, changed by DRSDavidSoft link https://meta.wikimedia.org/w/index.php?title=Huggle%2fDownload%2ffa edit summary: Created page with "=== بارگذاری ===" [14:42:34] Change on 12meta_wiki a page Huggle/fa was created, changed by DRSDavidSoft link https://meta.wikimedia.org/w/index.php?title=Huggle%2ffa edit summary: Created page with "بیشتر..." [14:42:53] Change on 12meta_wiki a page Huggle/fa was modified, changed by DRSDavidSoft link https://meta.wikimedia.org/w/index.php?diff=9685803 edit summary: Created page with "توسعه‌دهندگان"