[twill] wsgi_intercept, https and twill
John J Lee
jjl at pobox.com
Mon Jan 7 12:17:45 PST 2008
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.
John
More information about the twill
mailing list