Re: FormWizard and __call__

2008-04-15 Thread Honza Král
On Mon, Apr 14, 2008 at 5:56 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On Sun, Apr 13, 2008 at 6:13 PM, Honza Král <[EMAIL PROTECTED]> wrote: > > > I was going to say "Put the cache into self.foo", but now I'm just > > > realizing that there is just one FormWizard instantiated in urls.py

Re: FormWizard and __call__

2008-04-14 Thread Jay Parlar
On Sun, Apr 13, 2008 at 6:13 PM, Honza Král <[EMAIL PROTECTED]> wrote: > > I was going to say "Put the cache into self.foo", but now I'm just > > realizing that there is just one FormWizard instantiated in urls.py, > > so different people could be using the same FormWizard instance. > > the

Re: FormWizard and __call__

2008-04-13 Thread Honza Král
On Sat, Apr 12, 2008 at 3:37 AM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On 4/11/08, Honza Král <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 4:15 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > > Currently when we call get_form(i, request.POST) in __call__, we just > > > arbitrar

Re: FormWizard and __call__

2008-04-11 Thread Jay Parlar
On 4/11/08, Honza Král <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 4:15 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > Currently when we call get_form(i, request.POST) in __call__, we just > > arbitrarily recreate the Form instance. What if on the first time we > > create that instan

Re: FormWizard and __call__

2008-04-11 Thread Honza Král
On Fri, Apr 11, 2008 at 4:15 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 8:03 AM, Honza Král <[EMAIL PROTECTED]> wrote: > > you could perhaps postpone the validation of data till the end of the > > wizard, so only run this once, but that could cause problems for > >

Re: FormWizard and __call__

2008-04-11 Thread Jay Parlar
On Fri, Apr 11, 2008 at 8:03 AM, Honza Král <[EMAIL PROTECTED]> wrote: > you could perhaps postpone the validation of data till the end of the > wizard, so only run this once, but that could cause problems for > example if the user chose to override process_step and do something > based on the

Re: FormWizard and __call__

2008-04-11 Thread Honza Král
On Fri, Apr 11, 2008 at 4:10 AM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > I originally posted this in -users, but since it deals with internals, > maybe it's more appropriate for -dev. > > I'm looking at the FormWizard code, and in __call__, we have the following: > > for i in range(current_st

FormWizard and __call__

2008-04-10 Thread Jay Parlar
I originally posted this in -users, but since it deals with internals, maybe it's more appropriate for -dev. I'm looking at the FormWizard code, and in __call__, we have the following: for i in range(current_step): form = self.get_form(i, request.POST) if request.POST.get("hash_%d" % i, ''