[Pywikipedia-l] [ pywikipediabot-Patches-1843789 ] making replace.py work

SourceForge.net noreply at sourceforge.net
Tue Dec 4 02:20:56 UTC 2007


Patches item #1843789, was opened at 2007-12-04 03:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1843789&group_id=93107

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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pietro Battiston (toobaz)
Assigned to: Nobody/Anonymous (nobody)
Summary: making replace.py work

Initial Comment:
The following command:

python image.py pippo.png

gives the following output:

Checked for running processes. 1 processes currently running, including the
current process.
'Page' object has no attribute 'usingPages'


The problem is that oldImagePage is an instance of wikipedia.Page instead
of wikipedia.ImagePage.

I attach a very simple patch that fixes it. Then, everything works.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1843789&group_id=93107



More information about the Pywikipedia-l mailing list