Bugs item #3449372, was opened at 2011-12-03 05:49 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372...
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: General Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Dr. Trigon (drtrigon)
Assigned to: xqt (xqt)
Summary: Error in BasicBot.save
Initial Comment: Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r218, 2011/11/26, 17:57:39) Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16) [GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] config-settings: use_api = True use_api_login = True unicode test: triggers problem #3081100
Traceback (most recent call last): File "./bot_control.py", line 94, in <module> import clean_user_sandbox, sum_disc, subster, script_wui, subster_irc File "/data/toolserver/pywikipedia_REMERGE/clean_user_sandbox.py", line 27, in <module> import dtbext File "/data/toolserver/pywikipedia_REMERGE/dtbext/__init__.py", line 31, in <module> import dtbext_basic as basic File "/data/toolserver/pywikipedia_REMERGE/dtbext/dtbext_basic.py", line 34, in <module> import config, userlib, basic File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 36, in <module> class BasicBot: File "/data/toolserver/pywikipedia_REMERGE/basic.py", line 96, in BasicBot def save(self, text, page, comment=self.summary, minorEdit=True, NameError: name 'self' is not defined
The problem is that:
def save(self, text, page, comment=self.summary, minorEdit=True,
is syntactically incorrect. Because of the 'self.summary' since 'self' is not defined yet.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-04 23:50
Message: fixed with r9784
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3449372...
pywikipedia-bugs@lists.wikimedia.org