I would like to know two things: • I want to implement a script to rename pages. Do you agree that implementing this feature within replace.py as an option would the the right approach, or should I create a separated script? • What is the current procedure to provide patches (for the rewrite branch)? Reading http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Development didn’t solve this doubt of mine. I see there is a Patches section in SourceForge, is that the right place?
Although this seems to be a quite different functionality at first sight, however the complexity and flexibility of replace.py could be well used for it. (Regexes in content, required and prohibited regexes in title, other exceptions...)
2013/7/28 Adrián Chaves Fernández adriyetichaves@gmail.com
**
I would like to know two things:
• I want to implement a script to rename pages. Do you agree that implementing this feature within replace.py as an option would the the right approach, or should I create a separated script?
• What is the current procedure to provide patches (for the rewrite branch)? Reading http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Development didn’t solve this doubt of mine. I see there is a Patches section in SourceForge, is that the right place?
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi Adrián,
On 28 July 2013 10:01, Adrián Chaves Fernández adriyetichaves@gmail.comwrote:
**
I would like to know two things:
• I want to implement a script to rename pages. Do you agree that implementing this feature within replace.py as an option would the the right approach, or should I create a separated script?
Good question. I would be inclined to say it would be better as a seperate script, but as Bináris has mentioned: replace.py has a lot of functionality that might be useful. I *think* the best thing would be to actually remove the generic functionality from replace.py and move it to pagegenerators.py, so that you would only need very little duplicated code.
• What is the current procedure to provide patches (for the rewrite branch)? Reading http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Development didn’t solve this doubt of mine. I see there is a Patches section in SourceForge, is that the right place?
The best way is to push a patch to gerrit (see https://www.mediawiki.org/wiki/Git ), or to submit a pull request on github (from https://github.com/wikimedia/pywikibot-core , although I'm not 100% sure pull request integration is enabled yet). You can also upload a patch to SF.net, and someone will copy it to gerrit for you.
Best, Merlijn