[Python-bugs-list] [ python-Bugs-753592 ] websucker bug

SourceForge.net noreply@sourceforge.net
Tue, 01 Jul 2003 05:43:22 -0700


Bugs item #753592, was opened at 2003-06-12 18:00
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753592&group_id=5470

Category: Demos and Tools
>Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Dalke (dalke)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: websucker bug

Initial Comment:
from c.l.py poster Anton Vredegoor who doesn't like that 
SF has a "must login to post bugs" barrier, and whose IE 
has problems handling the SF bugs page.

On Win98Se, Python23:
>
>>d:\python23\pythonw -u wsgui.py
>Exception in Tkinter callback
>Traceback (most recent call last):
>  File "D:\PYTHON23\lib\lib-tk\Tkinter.py", line 1337, in 
__call__
>    return self.func(*args)
>  File "wsgui.py", line 163, in go
>    self.sucker.rootdir = os.path.dirname(
>TypeError: unbound method savefilename() must be 
called with Sucker
>instance as first argument (got App instance instead)
>>Exit code: 0

My bug-fix:

change only 1 line (164):
                websucker.Sucker.savefilename(self, url))
into:
                websucker.Sucker.savefilename(self.sucker, 
url))

I've tested it and now it works as expected. Can we get 
this in
Python23 final? 



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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-07-01 08:43

Message:
Logged In: YES 
user_id=33168

I guess since it didn't work. :-)  I thought I tested that.
 Oh well.  Your fix seems to work.

Checked in as Tools/webchecker/wsgui.py 1.7 and 1.5.18.1

Thanks.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-06-12 21:14

Message:
Logged In: YES 
user_id=33168

Why wouldn't you want to do self.sucker.savefilename(url)?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=753592&group_id=5470