예제 #1
0
 def getItems(self):
     access = IAuthorizationManager(self.context)
     authorizations = access.get_defined_authorizations().items()
     authorizations.sort(key=operator.itemgetter(0))
     return filter(lambda auth: auth.type == 'group',
                   map(operator.itemgetter(1), authorizations))