Bugs item #1777175, was opened at 2007-08-19 11:35 Message generated for change (Comment added) made by falk_steinhauer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1777175...
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: Fixed Priority: 5 Private: No Submitted By: Falk Steinhauer (falk_steinhauer) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in wikipedia.py and corresponding fix
Initial Comment: I am using snapshot 2007-06-19.
There is a bug in wikipedia.py. Function setSite() is just setting local variables, that are never used again.
Original: def setSite(site): default_code = site.language default_family = site.family
I think it should affect the global variables with the same name (that's what I need in a script that should work on several different wikis and compare their contents). In addtion default_code is a string, not a function-object. So my fixed version of setSite() looks as follows:
def setSite(site): global default_code, default_family default_code = site.language() default_family = site.family
----------------------------------------------------------------------
Comment By: Falk Steinhauer (falk_steinhauer)
Date: 2007-09-11 16:23
Message: Logged In: YES user_id=1810075 Originator: YES
I updated to snapshot 2007-06-19.
Error is still there.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1777175...