[Zope] Squishdot-0.1.5a posting broken with Zope 2.0.0b5
Elliot Lee
sopwith@redhat.com
Wed, 25 Aug 1999 00:43:23 -0400 (EDT)
It's me again. :)
When I submit a posting, Squishdot.py line 1226 (first statement of the
addPosting routine) bugs out:
Error Type: TypeError
Error Value: read-only character buffer, instance
Traceback (innermost last):
File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 209, in
publish_module
File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 199, in
zpublisher_exception_hook
File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 154, in
mapply
(Object: addPosting)
File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: addPosting)
File /usr/local/www/Zope/lib/python/Products/Squishdot/Squishdot.py,
line 1232, in addPosting
TypeError: (see above)
If I modify the addPosting routine to log its parameters via zLOG, I get:
1999-08-25T04:39:40 PROBLEM(100) Squishdot title is
<ZPublisher.HTTPRequest.FileUpload instance at 84e8550>
------
1999-08-25T04:39:40 PROBLEM(100) Squishdot author is
<ZPublisher.HTTPRequest.FileUpload instance at 84e2d68>
------
1999-08-25T04:39:40 PROBLEM(100) Squishdot body is
<ZPublisher.HTTPRequest.FileUpload instance at 84fa478>
------
1999-08-25T04:39:40 PROBLEM(100) Squishdot email is
<ZPublisher.HTTPRequest.FileUpload instance at 84e8640>
------
1999-08-25T04:39:40 PROBLEM(100) Squishdot notify is
''
------
1999-08-25T04:39:40 PROBLEM(100) Squishdot file is
''
It looks to me like the non-text parameters (e.g. 'notify' checkbox and
'file' file upload) are getting string params passed, and all the text
parameters are being passed as FileUpload objects.
Comments?
-- Elliot
Who me? I just wander from room to room.