[Zope] Content of image object
olpa@sybcom.de
olpa@sybcom.de
Tue, 2 Oct 2001 15:13:31 +0200 (CEST)
On Today, Andrew Kenneth Milton wrote:
> Delivered-To: olpa@sybcom.de
> Subject: Re: [Zope] Content of image object
> Date: Tue, 2 Oct 2001 20:26:55 +1000
> Cc: zope@zope.org
> To: olpa@sybcom.de
> From: Andrew Kenneth Milton <akm@theinternet.com.au>
>
> +-------[ olpa@sybcom.de ]----------------------
> |
> | Hi,
> |
> | how to get the content of an image object. I want to set a DTML-var with
> | the binary content of an image object...
> |
> | <dtml-call "REQUEST.set('logo', _['name_of_image_object'])">
>
> <dtml-call "REQUEST.set('logo', name_of_image_object.data)">
>
> I'm not sure you can have a valid reason for doing this from DTML however...
yes. this works. thanks!
i also managed to find a case when this is needed! this is written in the
chapter "Joys of programming with DTML when Python Scripts are too clear!"
a little bit of syntax obfuscuration!
---
I think we dream so we don't have to be apart so long. If we're in each
other's dreams, we can play together all night. -- Calvin
---
Oliver Pabst .-------------------------.
mailto:olpa@sybcom.de : :
phone :+49 681 56600600 : project department : SYBCOM GmbH
fax :+49 681 56600660 : : http://www.sybcom.de