Hi!<br><br>In replace.py, current version 8920, line 444:<br><div style="margin-left: 40px; font-family: courier new,monospace;">if not page.canBeEdited():<br></div>should change to <br><div style="margin-left: 40px; font-family: courier new,monospace;">
if not self.articles and not page.canBeEdited():<br></div>The reason is that with the new -save/-savenew options (introduced in rev 8700) we may use replace.py for gathering titles, and that's what I am doing in the minute. I want to collect titles from<b> fr, es, de</b> Wikipedias rather than my home wiki, but they seem not to allow edits without botflag. I don't need a flag and I won't change anything there, only save titles from those wikis, but the current line 444 prevents me of doing that. self.articles is not None iff -save or -savenew option is used, which means we don't edit the wiki.<br>
<br>Another issue is with line 843, <br><span style="font-family: courier new,monospace;"> titlefile = codecs.open(filename, encoding='utf-8',</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> mode=(lambda x: x and 'a' or 'w')(append))</span><br style="font-family: courier new,monospace;">
I tested my original version which had an IF here as far as I remember, and you turned it to lambda function. But somehow the -save option behaves now just as -savenew does, i.e. overwrites the old file instead of appending. Could you please help?<br clear="all">
<br>-- <br>Bináris<br>