I've been converting stuff to genshi+toscawidgets and I just hit a snag
with the FileField widget. The code I'm using to receive it worked fine
before I switched to ToscaWidgets, but now I get the following when I
try to make a submission that includes a file:

Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
 line 103, in _run
    applyFilters('before_main')
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py",
 line 151, in applyFilters
    method()
  File 
"/home/xornot/www/tgcms2_ve/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/visit/api.py",
 line 223, in before_main
    cherrypy.request.params = encode_utf8(cherrypy.request.params)
  File 
"/home/xornot/www/tgcms2_ve/lib/python2.4/site-packages/TurboGears-1.0.4b3-py2.4.egg/turbogears/visit/api.py",
 line 187, in encode_utf8
    res[k] = v.encode('utf-8')
  File "/usr/lib/python2.4/cgi.py", line 540, in __getattr__
    raise AttributeError, name
AttributeError: encode

If anyone can shed light on what needs to be done differently that would be 
great!
Thanks
iain


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to