[Zope] GenericUserFolder Bug

Phil Harris phil.harris@zope.co.uk
Mon, 29 May 2000 23:34:05 +0100


Hi

I've found a bug in GenericUserFolder.

Basically if you try and do any restriction by domain then it will fail
every time.

The problem is that on line 151 of GenericUserFolder.py, it tries to use
addr_match and host_match, which I assume was meant o be the same as the one
in the standard User.py.

The fix is to copy or import the ones from the standard User.py and then all
is well with the GUF.

For the record, I copied these two lines:

addr_match=regex.compile('[0-9\.\*]*').match #TS
host_match=regex.compile('[-A-Za-z0-9\.\*]*').match #TS

HTH

Phil
phil.harris@zope.co.uk