[Zope3-Users] error 500 on blob upload with testbrowser
Christophe Combelles
ccomb at free.fr
Sat Apr 19 21:00:39 EDT 2008
Hello,
I can successfully upload a zope.app.file.File with testbrowser,
but with zope.file.file.File (blob-based), I get this error 500:
----------------------------------------
Exception raised:
Traceback (most recent call last):
File
"/home/ccomb/buildout-eggs/tmp2BwTzl/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
File "<doctest eztranet.txt[17]>", line 1, in ?
browser.getControl(name='form.actions.add').click()
File
"/home/ccomb/buildout-eggs/zope.testbrowser-3.4.2-py2.4.egg/zope/testbrowser/browser.py",
line 591, in click
self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1))
File
"/home/ccomb/buildout-eggs/zope.testbrowser-3.4.2-py2.4.egg/zope/testbrowser/browser.py",
line 380, in _clickSubmit
self.mech_browser.open(form.click(
File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open
File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 254, in
_mech_open
httperror_seek_wrapper: HTTP Error 500: Internal Server Error
----------------------------------------
I'm using:
>>>
browser.open('http://localhost/++skin++Rotterdam/@@+/action.html?type_name=zope.file.File')
>>> browser.getControl(name='form.data').add_file(StringIO('rrrrrrttt'),
... 'text/plain', 'toto.txt')
>>> browser.getControl(name='form.actions.add').click()
----------------------------------------
Is there something specific due to the blob?
I get the same error with testbrowser 3.5.0
regards,
Christophe
More information about the Zope3-users
mailing list