def resource_factory(groups): return [traversal.GroupContext(group, pyramid_request) for group in groups]
def resource_factory(group): return traversal.GroupContext(group, pyramid_request)