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'])"> oviously sets logo with smthing like <img src="name_of_image_object" ...> but the thing i want is the content... pls hlp! thx oliver --- 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
would: <dtml-call "REQUEST.set('logo',_.getitem('imgname',0))"> work? ----- Original Message ----- From: <olpa@sybcom.de> To: <zope@zope.org> Sent: Tuesday, October 02, 2001 11:04 AM Subject: [Zope] Content of image object
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'])">
oviously sets logo with smthing like <img src="name_of_image_object" ...> but the thing i want is the content...
pls hlp! thx oliver
--- 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
_______________________________________________ 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 )
On Today, Phil Harris wrote:
Delivered-To: olpa@sybcom.de Subject: Re: [Zope] Content of image object Date: Tue, 2 Oct 2001 11:12:24 +0100 To: olpa@sybcom.de, zope@zope.org From: Phil Harris <phil.harris@zope.co.uk>
would:
<dtml-call "REQUEST.set('logo',_.getitem('imgname',0))">
work?
nope. Same effect as REQUEST.set('logo', _['logo'])"> --- 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
Try: <dtml-call "REQUEST.set('logo',_.getitem('imgname',0).data)"> maybe? ----- Original Message ----- From: <olpa@sybcom.de> To: "Phil Harris" <phil.harris@zope.co.uk> Cc: <olpa@sybcom.de>; <zope@zope.org> Sent: Tuesday, October 02, 2001 11:13 AM Subject: Re: [Zope] Content of image object
On Today, Phil Harris wrote:
Delivered-To: olpa@sybcom.de Subject: Re: [Zope] Content of image object Date: Tue, 2 Oct 2001 11:12:24 +0100 To: olpa@sybcom.de, zope@zope.org From: Phil Harris <phil.harris@zope.co.uk>
would:
<dtml-call "REQUEST.set('logo',_.getitem('imgname',0))">
work?
nope. Same effect as REQUEST.set('logo', _['logo'])">
--- 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
_______________________________________________ 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 )
+-------[ 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... -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
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
participants (3)
-
Andrew Kenneth Milton -
olpa@sybcom.de -
Phil Harris