Patches item #3093682, was opened at 2010-10-23 14:56 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Accepted Priority: 5
Private: No Submitted By: BinĂ¡ris (binbot)
Assigned to: xqt (xqt)
Summary: Replace.py saves the titles to disk
Initial Comment: With this patch, replace.py can save the page titles to a file for later use. The file has a dissection line after every 100th line for readability, thus an editcounter is implemented, too.
Changes: -- Introduced two new command line argument, -save and -savenew, and an updated main() to process them -- Updated ReplaceRobot class with two new functions and edit counter, and a new parameter -- Extended help (description of new feature and one more example) -- Some code wrappings to fit in 80 characters I found because I know xqt likes them :)
This seems not too atomic (sorry for that), but except code wrappings one change causes the other, so this is one rewrite.
Tested on Python 2.5.1 Known bugs: -- Help may exceed the scrollable size of the command line window. As a matter of fact, it might exceed it previously, on my machine it was just on the limit. As a temporary solution, last line suggests to use "more". -- Editcounter will show a greater value than number of actually edited size, if put_async fails (no feedback, and put_async my run several minutes later!)
See also these threads on pywiki-l mailing list: -- Replace.py should save -- please comment -- Paging the help
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-11-06 03:22
Message: done in r8700
----------------------------------------------------------------------
Comment By: BinĂ¡ris (binbot) Date: 2010-11-05 13:12
Message: Would anybody please say anything about this? It is _important_, and I think, not only for me. The patch makes the work on text replacements much faster, and decreases the server load and the litter in edit logs. If you have problem with the editcounter issue, please deprecate the finel output of it. Thank you in advance.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682...