[Zope] broken root security tab

Dieter Maurer dieter@handshake.de
Mon, 7 May 2001 19:58:15 +0200 (CEST)


Dave Ahn writes:
 > This is what I get:
 > ....
 > Error Type: TypeError
 > Error Value: string member test needs char left operand
 > 
 > Traceback (innermost last):
 >   ....
 >   File /usr/lib/zope/lib/python/AccessControl/Role.py, line 177, in <lambda>
 > TypeError: (see above)
 > 
 > The relevant lines from Role.py appear to be:
 >             d={'name': name,
 >                'acquire': type(roles) is ListType and 'CHECKED' or '',
 >                'roles': map(
 >                    lambda ir, roles=roles, valid=valid, ip=ip:
 >                    {
 >                        'name': "p%dr%d" % (ip,ir),
 >                        'checked': (valid[ir] in roles) and 'CHECKED' or '',
 >                        },
 >                    indexes)
The "roles" variable holds a string.

Someone else currently has similar problems (--> mailing list archives).
He found out, that delete all Z Instances from a folder removed
the problem.

See my answer to his problem report on how I would try to
analyse the problem.


Dieter