[TurboGears] Re: Struggling with form widgets.

2006-08-07 Thread [EMAIL PROTECTED]
I'm having a similar problem with Form widgets. This code: class NewCompanyForm: class Fields(widgets.WidgetsList): company_name = widgets.TextField(label=Company name:) user_name = widgets.TextField(label=Desired user name:) password =

[TurboGears] Re: Struggling with form widgets.

2006-08-07 Thread [EMAIL PROTECTED]
Fixed it; issue was trivial I was subclassing formencode.Schema instead of validators.Schema --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Re: Struggling with form widgets.

2006-08-06 Thread Michele Cella
Ian Wilson wrote: Hello, The form you use to get the error in validate() is different from the form you pass to the template. I can't really explain why that is important ...maybe someone else could but you should probably being doing it differently. I don't know why you are dynamically

[TurboGears] Re: Struggling with form widgets.

2006-08-06 Thread Fred C
I Ian, Thanks for you help, Now I see now what I did wrong. I have changed my code to this, and now everything is working fine. I did it that way because I wanted to have an object with everything in it, the form, and the methods to manage that form. Maybe it is a bad idea but I don't

[TurboGears] Re: Struggling with form widgets.

2006-08-05 Thread Ian Wilson
Hello, The form you use to get the error in validate() is different from the form you pass to the template. I can't really explain why that is important ...maybe someone else could but you should probably being doing it differently. I don't know why you are dynamically making the form, you