[Zope] Security Guru Question

Dieter Maurer dieter@handshake.de
Wed, 15 Jan 2003 23:30:35 +0100


Alan Runyan wrote at 2003-1-15 00:25 -0600:
 > ...
 > because when the xxxLocalRoles screens are called they
 > call get_valid_userids which at the top says:
 > aclu = getattr(aq_base(item), 'acl_users', _notfound)
The standard idiom would probably be:

    if not hasattr(aq_base(item),'acl_users'): aclu= _notfound
    else: aclu= item.acl_users


Dieter