Re: calling a view from within a view

2009-02-26 Thread Malcolm Tredinnick
On Thu, 2009-02-26 at 21:15 -0800, Bobby Roberts wrote: > Is it possible to execute a view from within a view? > > I've got a situation in my current view where if a condition is met, I > need to branch control to a new view and send it new parameters. I > have the following but it doesn't work:

Re: calling a view from within a view

2009-02-26 Thread Ranjan Kumar
I guess the error is in the line where u are passing the parameters to ShowAuctionDetails view. Check if it works without passing request object as the parameter. It worked in a similar view in my project. The function signature then would be: ShowAuctionDetails(slug=currentslug,selfbidder=1) H

Re: calling a view from within a view

2009-02-26 Thread Bobby Roberts
> You just call it, views are normal python functions, that being said it is > often better to redirect where possible(or sensible). > > Alex hey alex - Thanks for your quick reply. Is my syntax above correct to execute it? it doesn't seem to be working at all. I know the code is executing

Re: calling a view from within a view

2009-02-26 Thread Alex Gaynor
On Fri, Feb 27, 2009 at 12:15 AM, Bobby Roberts wrote: > > Is it possible to execute a view from within a view? > > I've got a situation in my current view where if a condition is met, I > need to branch control to a new view and send it new parameters. I > have the following but it doesn't work