This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: websucker bug
Type: Stage:
Components: Demos and Tools Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: dalke, nnorwitz
Priority: normal Keywords:

Created on 2003-06-12 22:00 by dalke, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (3)
msg16357 - (view) Author: Andrew Dalke (dalke) * (Python committer) Date: 2003-06-12 22:00
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? 

msg16358 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-06-13 01:14
Logged In: YES 
user_id=33168

Why wouldn't you want to do self.sucker.savefilename(url)?
msg16359 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-07-01 12:43
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.
History
Date User Action Args
2022-04-10 16:09:10adminsetgithub: 38633
2003-06-12 22:00:10dalkecreate