[Zope] Re: Parameters for external methods and page templates

Paul Winkler pw_lists@slinkp.com
Mon, 16 Sep 2002 08:52:18 -0700


On Mon, Sep 16, 2002 at 02:02:47PM +0200, Andreas Tille wrote:
> The Python Method I'm using is rendering a PNG image and returns it
> as string (right es it is done in http://www.zopelabs.com/cookbook/1010702887).
> 
> I can use it in dtml as
> 
>     <img src="inzidenz?argument=1" alt="Comment" />
> 
> and the page is rendered as expected.  But I found no working way to use
> any kind of Python-like syntax.  I tried several things with page templates
> and dtml.  The only thing happened when I tried Python like syntax was
> that the rendered string was put inplace and I've got something like
> 
>     <img src="<binary PNG image inserted here>" alt="Comment" />
> 
> which is bviousely not what I want.

This is very odd; looking at that zopelabs recipe, I don't even
understand why it works in DTML. The external method 
returns the actual image data, not a URL to an image object.

What is "argument" in your version?
What does "View source" show you when you look at the rendered
img tag from DTML?
 
--

Paul Winkler
"Welcome to Muppet Labs, where the future is made - today!"