Patches item #3003310, was opened at 2010-05-18 08:56 Message generated for change (Comment added) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3003310...
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: rewrite
Group: None
Status: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: stanlekub (stanlekub)
Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: bug accessing 'availableOptions' dict in Bot() class
Initial Comment: The Bot() class defines a dictionary named 'availableOptions', which is supposedly customizable by subclassing Bot(), but the Bot.getOption() and Bot.setOptions() methods use the "unbounded" Bot.availableOptions call.
The attached (very small) patch modifies this by replacing Bot.availableOptions with self.availableOptions, so that subclasses can use a custom dict.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2010-05-19 15:14
Message: Applied in r8189; thanks for the aptch.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3003310...
pywikipedia-bugs@lists.wikimedia.org