[twill] wsgi_intercept, https and twill
Robert Leftwich
twill at rtl.fmailbox.com
Mon Jan 7 12:37:42 PST 2008
On Mon, 7 Jan 2008 20:17:45 +0000 (GMT), "John J Lee" <jjl at pobox.com>
said:
> On Tue, 8 Jan 2008, Robert Leftwich wrote:
> [...]
> > class PatchedMechanizeBrowser(MechanizeBrowser):
> > """
> > A patched version of the mechanize browser class. Currently
> > installs the WSGI intercept handler & fixes a problem with
> > mechanize/urllib2 Basic Authentication.
> > """
> > def __init__(self, *args, **kwargs):
> > # install WSGI intercept handler.
> > self.handler_classes['http'] = build_http_handler()
> > self.handler_classes['https'] = build_http_handler()
> [...]
>
> You're mutating a class attribute here -- not a good idea.
True, but I just added the https line(s) based on the existing code.
...says me, passing the buck :-))
Robert
More information about the twill
mailing list