Ignore:
Timestamp:
25 May 2013, 05:59:03 (11 years ago)
Author:
Henrik Bettermann
Message:

Do not raise exception if local role has been removed in code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r10099 r10227  
    526526        site_url = self.url(grok.getSite())
    527527        for local_role in local_roles.keys():
    528             role_title = dict(get_all_roles())[local_role].title
     528            role_title = getattr(
     529                dict(get_all_roles()).get(local_role, None), 'title', None)
    529530            objects_string = ''
    530531            for object in local_roles[local_role]:
Note: See TracChangeset for help on using the changeset viewer.