Hi there
I too am having the same problem, from a form where I am uploading an
image.
On Dec 6, 9:10 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> I am still interested to see what was the request you tried that made
> the "before_main" filter to bork-out... Could you give us more info
> about this?
The element of the request that is causing the error is the image
itself, in a FieldStorage instance.
>>> repr(v)
FieldStorage('newimage', 'image.jpg', '.........')
>>> res[k] = v.encode('utf-8')
AttributeError: encode
Running 'tg-admin update' has not fixed it for me.
if I add apply the following diff to
/branches/1.0/turbogears/visit/api.py r3807
11a12
> from cherrypy._cpcgifs import FieldStorage
186a188,189
> elif isinstance(v, FieldStorage):
> res[k] = v
My problem goes away. Is this a valid patch, or am I missing
something?
Cheers
Andy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---