[Zope] Re: Return image from Python Script
Michael Haubenwallner
michael at d2m.at
Tue Dec 14 10:27:28 EST 2004
Michael Haubenwallner wrote:
> Simon Forster wrote:
>
>> return context.restrictedTraverse('/LDML/images/ldml.gif')
>>
>> gives me the string
>>
>> <img src="http://127.0.0.1:8080/LDML/images/ldml.gif" alt="" title=""
>> height="120" width="120" border="0" />
>>
>> But what I'm after is the actual binary image file. How do I get this?
>>
>
> rewrite the line to this::
>
> img=context.restrictedTraverse('/LDML/images/ldml.gif')
> return img()
>
> Michael
>
Sorry, this is wrong.
I have hit the send-key too early.
Michael
--
http://zope.org/Members/d2m
More information about the Zope
mailing list