[Zope] Problems with File upload and Zope-1.10.0pr1

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Wed, 10 Feb 1999 18:48:17 -0500 (EST)


Hello Zopistas

Part 1

Trying to upload a plain text file, name Test into Zope (as an object
File), (both Zope-1.9.0 and Zope-1.10.0) results in  the following error:
  
Sorry, an error occurred.

Traceback (innermost last):
  File /home/pavlos/Zope-1.9.0-src/lib/python/ZPublisher/Publish.py, line
879, in publish_module
  File /home/pavlos/Zope-1.9.0-src/lib/python/ZPublisher/Publish.py, line
595, in publish
    (Info: /manage_addFile)
  File /home/pavlos/Zope-1.9.0-src/lib/python/OFS/Image.py, line 124, in
manage_addFile
    (Object: ApplicationDefaultPermissions)
  File /home/pavlos/Zope-1.9.0-src/lib/python/OFS/Image.py, line 180, in
__init__
    (Object: PropertyManager)
BadValue: No content type specified


Image.py in Zope 1.10.0 has a more intelligent way to figure out the type
but they both fail. I cannot see how the PUT function of Image.py
(Zope-1.10.0p) can fail to set the content-type.


Part 2.

I have installed Zope 1.10.0 and transfered the old Data.bbb files in the
var directory. Everything seems to work ok and the old Document objects
have been succesfully changed to DTML method objects. 

Nevertheless a dtml like:
<!--# in  "objectValues(['Document'])"-->
captures only the old Documents and not the new DTML methods or
DTML Documents that I have added. Curiously copies of the old Document
methods are also not shown. Looks like a bug to me.

Pavlos