Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
Scratch that. I ended up doing it the other way. I went back and reviewed and it seemed less ugly now than it did at midnight last night. Funny, that. Thanks for the advice. On Apr 10, 10:45 am, Laereom wrote: > Honestly, I really don't like that method, mostly due to ugliness. > I'm looking

Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
Honestly, I really don't like that method, mostly due to ugliness. I'm looking for a solution specifically to instantiating a form created via a class factory, unless that is some sort of Herculean task. On Apr 10, 10:13 am, Daniel Roseman wrote: > On Apr 10, 4:40 pm, Laereom wrote: > > > > > >

Re: Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Daniel Roseman
On Apr 10, 4:40 pm, Laereom wrote: > As the title suggests, I'm creating a dynamic form via a class > factory. > > Here is what I'm doing inside the class factory itself (as far as > actually making the class goes): >                 class _QuestionAnswerForm(forms.Form): >                      

Dynamic forms through a class factory; 'string index out of range'

2010-04-10 Thread Laereom
As the title suggests, I'm creating a dynamic form via a class factory. Here is what I'm doing inside the class factory itself (as far as actually making the class goes): class _QuestionAnswerForm(forms.Form): response = forms.IntegerField(widget=RadioSelect