Re: Calling another view callable

2011-08-14 Thread kes
On Aug 14, 1:28 am, Chris McDonough wrote: > > I'm afraid there's no API to do exactly what you want to do right now.   > Suggestions for a good API for this purpose would be useful (not the > obvious I just want to call the function and get a response; views can > be methods and instances too, a

Re: Calling another view callable

2011-08-14 Thread Mike Orr
On Sat, Aug 13, 2011 at 11:28 PM, Chris McDonough wrote: > On Sat, 2011-08-13 at 16:51 -0700, kes wrote: >> On Aug 13, 3:12 pm, Matt Feifarek wrote: >> >> > I don't think that it should be anything special; they're just functions >> > after all. >> > >> > So, something like this should work: >> >

Re: Calling another view callable

2011-08-13 Thread Chris McDonough
On Sat, 2011-08-13 at 16:51 -0700, kes wrote: > On Aug 13, 3:12 pm, Matt Feifarek wrote: > > > 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]: > >

Re: Calling another view callable

2011-08-13 Thread kes
On Aug 13, 3:12 pm, Matt Feifarek wrote: > 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 Re

Re: Calling another view callable

2011-08-13 Thread Matt Feifarek
On Sat, Aug 13, 2011 at 11:59 AM, kes 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 af

Calling another view callable

2011-08-13 Thread kes
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 have posted a question on Stack Overflow with the full details: http://stackoverflow.com/questions/7048235/calling-another-view-