def __call__(self, obj, request):
        if self.internal:
            raise HTTPNotFound()
        if (self.permission is not None and
            not generic.permits(request.identity, obj, self.permission,
                                lookup=request.lookup)):
            raise HTTPForbidden()
        content = self.func(obj, request)
        if isinstance(content, BaseResponse):
            # the view took full control over the response
            response = content
        else:
            response = self.render(content, request)

        # run request after if it's a 2XX or 3XX response
        if 200 <= response.status_code <= 399:
            request.run_after(response)

        return response
Generate Server objects from all containers.
dataset/ETHPy150Open morepath/morepath/morepath/view.py/View.__call__--crossover with--dataset/ETHPy150Open openstack/rally/rally/deployment/serverprovider/providers/lxc.py/LxcHost.get_server_objects