[Zope] Re: Return image from Python Script
    Michael Haubenwallner 
    michael at d2m.at
       
    Tue Dec 14 09:56:44 EST 2004
    
    
  
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
-- 
http://zope.org/Members/d2m
    
    
More information about the Zope
mailing list