Hello! I would like to suggest adding new feature to pywikipedia in replace.py. This feature will give ability to use multipatterns in the same time and will require adding new parameter e.x. -multipatt:{number higher than 2}. Why? Because very often many of us, bot operators, have to change more than one thing in edited articles. Now it requires typing and executing more than one command which is a bit time-consuming.
Example of use of a new repalce.py with this feature: python replace.py -file:mylist -multipatt:2 "old text" "new one" "another thing to change" "and the replacement"
I will be truly grateful if you add this improvement to replace.py.
Patrol110@pl.wiki
Hello!
2009/10/4 Patrol110 patrol110.wikipedia@gmail.com:
Example of use of a new repalce.py with this feature: python replace.py -file:mylist -multipatt:2 "old text" "new one" "another thing to change" "and the replacement"
python replace.py -file:mylist "old text" "new one" "another thing to change" "and the replacement"
Already works as expected.
On Sun, Oct 4, 2009 at 4:40 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
Hello!
2009/10/4 Patrol110 patrol110.wikipedia@gmail.com:
Example of use of a new repalce.py with this feature: python replace.py -file:mylist -multipatt:2 "old text" "new one" "another thing to change" "and the replacement"
python replace.py -file:mylist "old text" "new one" "another thing to change" "and the replacement"
Already works as expected.
In that case, it could be clarified in the documentation. Attaching a posible patch, but maybe it could use better wording.
Best regards,
2009/10/4 Santiago M. Mola cooldwind@gmail.com:
In that case, it could be clarified in the documentation. Attaching a posible patch, but maybe it could use better wording.
Looks good to me.
Applied as r7364, thanks.
pywikipedia-l@lists.wikimedia.org