Calling another view in Pyramid

前端 未结 6 1415
庸人自扰
庸人自扰 2021-02-02 16:02

My goal: In Pyramid, to call another view-callable, and to get a Response object back without knowing any details about that view-callable.

In my Pyramid a

6条回答
  •  逝去的感伤
    2021-02-02 16:18

    can't you do something like that:

    @view_config(name="baz") def baz_view(request): return HTTPFound(location=self.request.route_path('foo'))

提交回复
热议问题