Bugs item #2091292, was opened at 2008-09-03 22:58 Message generated for change (Settings changed) made by wikishizhao You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2091292...
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: interwiki
Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: shizhao (wikishizhao) Assigned to: Nobody/Anonymous (nobody) Summary: interwiki.py NameError
Initial Comment: run interwiki.py can't changing page:
======Post-processing [[zh:中国共产党领导人世代]]====== Updating links on page [[zh:中国共产党领导人世代]]. Changes to be made: 移除: [[ja:第四世代]] - [[ja:第四世代]]
ERROR: Found incorrect link to ja in [[zh:中国共产党领导人世代]] NOTE: Updating live wiki... Changing page [[zh:中国共产党领导人世代]] Dump zh (wikipedia) saved Traceback (most recent call last): File "interwiki.py", line 1735, in <module> bot.run() File "interwiki.py", line 1486, in run self.queryStep() File "interwiki.py", line 1465, in queryStep subj.finish(self) File "interwiki.py", line 1053, in finish if self.replaceLinks(page, new, bot): File "interwiki.py", line 1204, in replaceLinks status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods) File "/home/shizhao/pywikipedia/wikipedia.py", line 1300, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop) File "/home/shizhao/pywikipedia/wikipedia.py", line 1386, in _putPage response, data = self.site().postForm(address, predata, sysop) File "/home/shizhao/pywikipedia/wikipedia.py", line 4326, in postForm cookies=self.cookies(sysop = sysop)) File "/home/shizhao/pywikipedia/wikipedia.py", line 4377, in postData return self.postData(address, data, contentType, sysop, useCookie, compress, cookie) NameError: global name 'useCookie' is not defined
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2091292...
pywikipedia-l@lists.wikimedia.org