[Zope] Returning an image and text from python script
Dieter Maurer
dieter@handshake.de
Mon, 17 Feb 2003 19:53:16 +0100
Sven Hohage wrote at 2003-2-17 15:58 +0100:
> I'd like to return from python script an image object to a dtml method
> which renders the image.
> If the state is edit - set by a cookie- the image should have a link for
> updating the image.
> I tried to add the text with the object which obviously failed.
> I also tried to return a string like "<dtml-var '_.getitem(' " +
> pictureName + " ,0'>" + linkText which only displays the string but
> didn't render the image.
>
> To return multiple values is not what I want because I want to have a
> simple funtion in the dtml-method like <dtml-var "getPicture('pic1')">
Then you must learn how HTML displays images ;-)
Look for the "img" tag. Generate one in your Python Script together
with all necessary decoration.
Dieter