[Zope] returning a dynamically created zip file

Andreas Jung lists at andreas-jung.com
Tue Jun 29 16:20:19 EDT 2004



--On Dienstag, 29. Juni 2004 14:14 Uhr -0500 John Hunter 
<jdhunter at ace.bsd.uchicago.edu> wrote:

>
> I have a class in a zope file that returns a zip file.  The zip file
> is created dynamically.  Currently, I save this zip file to a zope
> folder and return it's URL.  I was wondering if there was a way to
> avoid saving it to the zope file system.

Zope has no file system, Zope has an object oriented database.
 You can spit out the file direct from the temporary file. there is some
code in PloneCollectorNG that does the same with PDF files (grep for
asPDF()).

-aj





More information about the Zope mailing list