[Zope] 'including' output from external files in a DTML doc?

Phil Harris phil@philh.org
Fri, 21 May 1999 15:47:10 +0100


Tone,

Couldn't you create an external method that used urllib to open th document
through http, since both bits are on the same machine the overhead should be
insignificant.

HTH

Phil
phil@philh.org

----- Original Message -----
From: Tony McDonald <tony.mcdonald@ncl.ac.uk>
To: Zope List <zope@zope.org>
Sent: Friday, May 21, 1999 2:57 PM
Subject: [Zope] 'including' output from external files in a DTML doc?


> Hi all,
> I thought that the simple
>
> blah
> <!--#var quote-->
>
> where quote is a DTML method called
> <!--#call
> "RESPONSE.redirect('http://host.domain/cgi-bin/general/quote.pl')"-->
>
> might include the output from quote.pl at the point where <!--#var
> quote--> appears.
>
> It doesn't. The redirect loads up quote.pl (which it was always going
> to do of course....)
>
> Anyone got any ideas on how to include output from external programs
> (in my case it will be Perl and PHP3) in a Zope document?
>
> tone
> ------
> Dr Tony McDonald,  FMCC, Networked Learning Environments Project
> The Medical School, Newcastle University Tel: +44 191 222 5888
> Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>