[Zope] Return data from External Methods

Phil Harris phil.harris@zope.co.uk
Wed, 13 Sep 2000 11:32:23 +0100


You need to set the content type being returned, something like:

<dtml-call "RESPONSE.setHeader('content-type','text/xml')">

hth

Phil
phil.harris@zope.co.uk

----- Original Message -----
From: "Steinar Rune Eriksen" <steinar@orion.no>
To: <zope@zope.org>
Sent: Wednesday, September 13, 2000 11:15 AM
Subject: [Zope] Return data from External Methods


> I want to return raw XML data from a Python method in Zope, but Zope adds
> the following prefix to my return string:
> <html><head></head>
> Any suggestions how to get around that, so that only my own data (i.e. the
> XML file as a string) is returned ?
>
>
> Steinar Eriksen
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> Admin
> Orion System AS
> **********************************************************************
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )