[Zope] ZPublishing
Michel Pelletier
michel@digicool.com
Wed, 29 Sep 1999 10:17:33 -0400
> -----Original Message-----
> From: Chui.Tey@env.qld.gov.au [mailto:Chui.Tey@env.qld.gov.au]
> Sent: Wednesday, September 29, 1999 4:07 AM
> To: zope@zope.org
> Subject: [Zope] ZPublishing
>
>
> I am trying to send some dynamically generated binary data to
> the output
> buffer. How do I do it in python with Zope?
>
> As I understand it HTMLFile(xxxx) returns a dtml document object. I
> could dump the data to file and then try to send it using the binary
> equivalent of the HTMLFile class. Is there such an animal?
>
> I noticed there is the ImageFile class, but the guess_encoding module
> does not list the content type I need to publish. Is it a good idea to
> add mine there or can I override this?
>
> Isn't there anyway I could just write to the output buffer?
I think you're looking for RESPONSE.write().
-Michel
>
> Thanks.
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>