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 =
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
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
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
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
5 matches
Mail list logo