[Zope] ref another file while adding file in ZMI

Tim Hicks tim@sitefusion.co.uk
Sun, 18 Aug 2002 00:25:13 +0100


> Rather than have to upload a file while adding a file object using ZMI,
> how can I refer to another existing file in the object tree?
>
> I tried putting "/root/refs/quotes/file1" in the File box but the file
> that was added had a mime type of application/octet-stream and worked ok
> once I set the mime type to text/html.  Why didn't it pick up on the
> fact that file1 is text/html itself?
>
> I could copy the file but am trying to learn...

You're trying to get a new object into the ZODB that is a copy of one that
is already stored?  Why don't you want to use the copy/paste procedure,
that's what it's there for?

tim