https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
Web browser: --- Bug ID: 55046 Summary: replace.by and one-by-one modification Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/288/ Reported by: crochet_david Created on: 2011-07-20 10:02:48 Subject: replace.by and one-by-one modification Original description: When the robots need to make multiple modification in a one page, it do it all. But, in some case, some modifications not need to be done.
So add a new parametre as "-single" to tell each modification to be done in a page
https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Hi David, by the time it will be solved within textlib.py (it has the replaceExcept() function), I warmly suggest you this tutorial that I wrote recently: http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes%5C_and%5C_fu... Your problem is solved there. Have fun!
https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Replace.py calls replaceExcept() from textlib.py, but the confirmation of replacements offered by textlib.py takes place in replace.py. Therefore it would be very difficult.
But there is a way to do that with a very small programming. Please have a look at http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes%5C_and%5C_fu..., where the first example is your friend. With a minimal rewrite of it you may confirm each modification separately. I think this is much simpler than rewrite both replace.py and textlib.py.
Is that an appropriate solution for your peoblem?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/288
https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
Ricordisamoa ricordisamoa@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@live.it Summary|replace.by and one-by-one |replace.py and one-by-one |modification |modification
https://bugzilla.wikimedia.org/show_bug.cgi?id=55046
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|General |Other scripts
pywikipedia-bugs@lists.wikimedia.org