On Sat, Aug 13, 2011 at 11:59 AM, kes <[email protected]> wrote:

> I am looking for a way to call another view callable from one of my
> views and have it return a Response object, without the caller needing
> to know how it was rendered.
>

I don't think that it should be anything special; they're just functions
after all.

So, something like this should work:

def view1(request):
    if [something something]:
        return view2(request)
    [other code here]
    return Response("This is from view1")

def view2(request):
    return Response("This is from view2")

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to