Ignore:
Timestamp:
26 May 2011, 23:34:04 (13 years ago)
Author:
uli
Message:

#37

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/users.py

    r6180 r6202  
    6363@grok.subscribe(Interface, grok.IObjectRemovedEvent)
    6464def handle_local_roles_on_obj_removal(obj, event):
    65     role_map = IPrincipalRoleMap(obj)
     65    try:
     66        role_map = IPrincipalRoleMap(obj)
     67    except TypeError:
     68        # no map, no roles to remove
     69        return
    6670    for local_role, user_name, setting in role_map.getPrincipalsAndRoles():
    6771        notify(LocalRoleSetEvent(
Note: See TracChangeset for help on using the changeset viewer.