Hi,
I'm trying to upload a file to my server but it fails during
submition. Does it bells a ring to
anyone ? Any use sample or link to some doc (I didn't find anything
clear) are welcome.
I get the following error :
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py",
line 105, in _run
self.main()
File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py",
line 254, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in save
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/controllers.py", line 334, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/database.py", line 354, in sa_rwt
retval = dispatch_exception(e,args,kw)
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/database.py", line 343, in sa_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/controllers.py", line 351, in <lambda>
mapping, fragment, args, kw)))
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/controllers.py", line 378, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/errorhandling.py", line 73, in try_call
return func(self, *args, **kw)
File "<string>", line 3, in save
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/controllers.py", line 143, in validate
kw.update(form.validate(value, state))
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/widgets/forms.py", line 1167, in validate
return self.validator.to_python(value, state)
File "/usr/lib/python2.4/site-packages/FormEncode-0.7.1-py2.4.egg/
formencode/api.py", line 368, in to_python
value = tp(value, state)
File "/usr/lib/python2.4/site-packages/FormEncode-0.7.1-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.7.1-py2.4.egg/
formencode/api.py", line 368, in to_python
value = tp(value, state)
File "/usr/lib/python2.4/site-packages/FormEncode-0.7.1-py2.4.egg/
formencode/validators.py", line 1513, in _to_python
upload = value.get(self.upload_key)
AttributeError: 'unicode' object has no attribute 'get'
TurboGears Version Info
* TurboGears 1.0.2.2
* cElementTree 1.0.5-20051216
* configobj 4.4.0
* DecoratorTools 1.4
* RuleDispatch 0.5a0
* setuptools 0.6c5
* FormEncode 0.7.1
* PasteScript 1.3.4
* elementtree 1.2.6-20050316
* simplejson 1.7.1
* CherryPy 2.2.1
* TurboKid 1.0.1
* TurboCheetah 0.9.5
* TurboJson 0.9.9
* PyProtocols 1.0a0
* PasteDeploy 1.3
* Paste 1.3
* kid 0.9.5
* Cheetah 2.0rc7
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---