[Zope] Strange error with Photo Product
Dieter Maurer
dieter@handshake.de
Mon, 15 Jul 2002 19:54:37 +0200
Dennis Allison writes:
> ...
> container.manage_addProduct.manage_addPhoto(id,title,file,.. )
> ...
> Zope Error
> Zope has encountered an error while publishing this resource.
> Error Type: KeyError
> Error Value: the_file
>
> ...
>
> File /var/zope/lib/python/Products/PythonScripts/PythonScript.py, line
> 302, in _exec
> (Object: photo_upload)
> (Info: ({'script': <PythonScript instance at 8b70a88>, 'context':
> <Folder instance at 8d91b60>, 'container': <Folder instance at 8d91b60>,
> 'traverse_subpath': []}, (), {}, None))
> File Script (Python), line 8, in photo_upload
> File /var/zope/lib/python/AccessControl/ZopeGuards.py, line 90, in
> guarded_getitem
> File /var/zope/lib/python/ZPublisher/HTTPRequest.py, line 847, in
> __getitem__
> KeyError: (see above) File
Apparently, your "file" in not a "ZPublisher.HTTPRequest.FileUpload"
instance.
Dieter