It wouldn't really be any shorter, but I think you could also use
return response.render(view=other_view_file, vars=something())
This method might actually make it more clear what you're doing.
Anthony
On Tuesday, June 14, 2011 9:49:27 AM UTC-4, sebastian wrote:
> Hi All,
>
> in controller
>
> def something()
> # do something
> return dict()
>
> def somethingelse()
> # do something else
> response.view="%s/%s.%s" % (request.controller, "something",
> request.extension)
> return something()
>
> is there any shortcut for changing the view and function withing a
> function ? (no redirect as I do not want to create a new request)
>
> thanks
> --
> Sebastian E. Ovide
>
>
>
>
>