[Zope3-Users] dynamic file creation

Michal Nowikowski godfryd at gmail.com
Fri Apr 14 08:56:55 EDT 2006


Hello,

I'm a Zope3 newbie. I want to send to user a file while he clicks on a link.
The file is created dynamically and sent to user for example in ZIP format.
I think I had to use IFile interface and File class. But I dont know how to
prepare it and send it to user. My code:

class ISomeContainer(IReadContainer):
    contains(IFile)

then I have:

self['zip'] = File("some data", "application/zip")

So when I access url: http://somepath/zip
browser shows 'some data', but I want to see 'Save As' dialog window.
How to do that?

Godfryd


More information about the Zope3-users mailing list