I am getting an error around this area, and I'm not sure if I've done
something or if it is a bug.
I have my schema:
class createUserSchema(formencode.Schema):
emailAddress = validators.Email()
userId = validators.PlainText(not_empty=True)
And I try to use it as follows:
@turbogears.expose( html="vsx.templates.createUser", validators =
myForms.createUserSchema() )
def createUser( self, userId='', emailAddress='', submit=''):
And I'm getting the following error:
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 271, in run
main()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 502, in main
body = page_handler(*args, **cherrypy.request.paramMap)
File
"/Users/lucas/dev/vsx/third-party/turbogears/turbogears/controllers.py",
line 193, in newfunc
errors.update(error.error_dict)
TypeError: iteration over non-sequence
Is errors the wrong type? Did I do something wrong? Any help would be
greatly appreciated.
Artimage.-