Re: [Pywikipedia-l] reflinks.py under GPL?

2014-06-08 Thread Amir Ladsgroup
IIRC NicDumZ https://en.wikipedia.org/wiki/User:NicDumZ was the original writer of the code, I send them an e-mail about this Best On Sun, Jun 8, 2014 at 8:07 AM, Ricordisamoa ricordisa...@openmailbox.org wrote: I found this in the source code of scripts/reflinks.py: Distributed under the

Re: [Pywikipedia-l] getters and setters

2014-06-08 Thread Amir Ladsgroup
The page.text is the correct approach. It may cause lots of function calls in backend but it's easier to use and one of the best advantage of this approach is you can change page's text several times and flush it away with a simple page.save() almost as the same as other objects in programing

Re: [Pywikipedia-l] getters and setters

2014-06-08 Thread John
I see where your going and I dont have any issues with it, you are keeping page.text as one function/property. Right now in core page.text() can refer to one of three methods. Either defining new_text, deleting new_text, or setting new_text. I actually like Ladsgroup 's idea and all that is

Re: [Pywikipedia-l] getters and setters

2014-06-08 Thread Tom Morris
On Sat, Jun 7, 2014 at 2:43 PM, Ricordisamoa ricordisa...@openmailbox.org wrote: It seems to me that the current trend is to use the same attribute as both a getter and a setter, e.g. Page.text. Is this true? Should we convert Claim.getTarget() and .setTarget() to just target (which is

[Pywikipedia-l] adding error handling to Bot.userPut()

2014-06-08 Thread Ricordisamoa
I'm in the process of converting several scripts to use the framework's generic Bot class (gerrit:137334 https://gerrit.wikimedia.org/r/137334/, gerrit:137346 https://gerrit.wikimedia.org/r/137346/, gerrit:137354 https://gerrit.wikimedia.org/r/137354/, gerrit:138219

Re: [Pywikipedia-l] adding error handling to Bot.userPut()

2014-06-08 Thread John
I guess it depends on the script, I know when Im writing tools I catch those errors myself and adjust my code depending on the response. keeping it in the bot class limits and can change the behavior of code depending on how it coded. Keep in mind that your working within a specific framework,

Re: [Pywikipedia-l] mwparserfromhell

2014-06-08 Thread Merlijn van Deen
On 1 June 2014 01:57, Ricordisamoa ricordisa...@openmailbox.org wrote: Since gerrit:131263 https://gerrit.wikimedia.org/r/131263/ , it seems to me that the excellent mwpfh is going to be used more and more extensively within our framework. Am I right? For example, the DuplicateReferences

Re: [Pywikipedia-l] Interested in hacking on pywikibot

2014-06-08 Thread Merlijn van Deen
Hi Travis, On 6 June 2014 08:34, Travis Briggs audiod...@gmail.com wrote: All this to say, I'd like to see if I can help out on the pywikibot project itself, though I don't have a specific wiki that I work on or a specific bot that I'd like to write. Amir already gave some excellent

Re: [Pywikipedia-l] Interested in hacking on pywikibot

2014-06-08 Thread Ricordisamoa
In addition to making your own patches, you can review others' on Gerrit https://gerrit.wikimedia.org/r/#/q/status:open+project:pywikibot/core,n,z. I saw you have an account there, and since Google also uses it, you are supposed to know how to work with it. ;-) Il 06/06/2014 08:34, Travis

[Pywikipedia-l] Wikidata project focused on economic data

2014-06-08 Thread Alex Peek
Project homepage: https://meta.wikimedia.org/wiki/The_Global_Economic_Map We are a new project looking for volunteers. Thanks, Alex ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] getters and setters

2014-06-08 Thread Amir Ladsgroup
On Mon, Jun 9, 2014 at 12:01 AM, Tom Morris tfmor...@gmail.com wrote: On Sat, Jun 7, 2014 at 2:43 PM, Ricordisamoa ricordisa...@openmailbox.org wrote: It seems to me that the current trend is to use the same attribute as both a getter and a setter, e.g. Page.text. Is this true? Should we