RE: [Zope] URGENT: Serving a File object from an external method.
1 Jul
1999
1 Jul
'99
2:33 a.m.
-----Original Message----- From: Pavlos Christoforou [mailto:pavlos@gaaros.msrc.sunysb.edu] Sent: Thursday, July 01, 1999 12:40 To: Jay, Dylan Cc: 'zope@zope.org' Subject: Re: [Zope] URGENT: Serving a File object from an external method.
On Thu, 1 Jul 1999, Jay, Dylan wrote:
If your external method is responsible of returning the binary file then something like this might work:
def generateFile(self,RESPONSE): ' ' RESPONSE['content-type']='application/octet-stream' bin_data=generate_data() ## the generating function return bin_data
Thanks, that worked. I mis-understood the way serving up an object worked.
9775
Age (days ago)
9775
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jay, Dylan