def view(self, obj, default=None, app=SAME_APP, **predicates):
        if app is None:
            raise LinkError("Cannot view: app is None")

        if app is SAME_APP:
            app = self.app

        predicates['model'] = obj.__class__

        def find(app, obj):
            return generic.view.component_key_dict(lookup=app.lookup,
                                                   **predicates)

        view, app = app._follow_defers(find, obj)
        if view is None:
            return default

        old_app = self.app
        old_lookup = self.lookup
        app.set_implicit()
        self.app = app
        self.lookup = app.lookup
        result = view.func(obj, self)
        old_app.set_implicit()
        self.app = old_app
        self.lookup = old_lookup
        return result
Call view for model instance.
dataset/ETHPy150Open morepath/morepath/morepath/request.py/Request.view