[Zope-dev] Problems with LoginManager form-based login

Evan Simpson evan@digicool.com
Fri, 26 May 2000 15:05:55 -0400


----- Original Message -----
From: Phillip J. Eby <pje@telecommunity.com>
> Been there, done that.  Yours doesn't work either, btw.  Well, actually,
it
> does, it's just that it causes a memory leak because it leaves an
> unintended circular reference.  We've got a version that fixes the
circular
> reference, but in a really really ugly way (it does a run-time patch to
> BaseRequest.close() to remove the poked-in unauthorized() method).

The GUF version, at least, doesn't need this drastic a fix.  Adding the
following line to the top of guf_unauthorized should suffice:

del request.RESPONSE.unauthorized

Cheers,

Evan @ digicool & 4-am