Max fixed this issue in r1081, are you using the
FieldStorageUploadConverter from turbogears.validators or
formencode.validators?

http://trac.turbogears.org/turbogears/changeset/1081

Ciao
Michele

Olli Wang wrote:
> help, after I updated to 0.9a2, or latest SVN on another computer. my
> upload file couldn't work anymore. it's very very bad. any idea? :(
>
> Page handler: <bound method Processing.photo of <gsa.album.Processing
> instance at 0x40c3aaec>>
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
> line 106, in _run
>     self.main()
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
> line 255, in main
>     body = page_handler(*virtual_path, **self.params)
>   File "<string>", line 3, in photo
>   File "/root/turbogears/turbogears/controllers.py", line 211, in
> expose
>     output = database.run_with_transaction(expose._expose,func, accept,
> allow_json, allow_json_from_config,*args, **kw)
>   File "/root/turbogears/turbogears/database.py", line 216, in
> run_with_transaction
>     retval = func(*args, **kw)
>   File "<string>", line 5, in _expose
>   File "/root/turbogears/turbogears/controllers.py", line 232, in
> <lambda>
>     expose._expose.when(rule)(lambda _func, accept, allow_json,
> allow_json_from_config,*args,**kw: _execute_func(
>   File "/root/turbogears/turbogears/controllers.py", line 255, in
> _execute_func
>     output = errorhandling.try_call(func, *args, **kw)
>   File "/root/turbogears/turbogears/errorhandling.py", line 71, in
> try_call
>     output = func(self, *args, **kw)
>   File "<string>", line 3, in photo
>   File "/root/turbogears/turbogears/identity/conditions.py", line 235,
> in require
>     return fn(self, *args, **kwargs)
>   File "<string>", line 3, in photo
>   File "/root/turbogears/turbogears/controllers.py", line 112, in
> validate
>     kw.update(form.validate(value))
>   File "/root/turbogears/turbogears/widgets/forms.py", line 874, in
> validate
>     return self.validator.to_python(value, state)
>   File
> "/usr/lib/python2.4/site-packages/FormEncode-0.4-py2.4.egg/formencode/api.py",
> line 304, in to_python
>     value = tp(value, state)
>   File
> "/usr/lib/python2.4/site-packages/FormEncode-0.4-py2.4.egg/formencode/schema.py",
> line 132, in _to_python
>     new[name] = validator.to_python(value, state)
>   File
> "/usr/lib/python2.4/site-packages/FormEncode-0.4-py2.4.egg/formencode/api.py",
> line 293, in to_python
>     if not value and value != 0:
>   File "/usr/lib/python2.4/cgi.py", line 625, in __len__
>     return len(self.keys())
>   File "/usr/lib/python2.4/cgi.py", line 601, in keys
>     raise TypeError, "not indexable"
> TypeError: not indexable


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to