On Wed, Sep 17, 2008 at 03:01:55PM +0200, Nico Grubert wrote:
> Hi there
> 
> Is it possible to show several PIL.Image.Image instances in a Zope Page 
> without creating a temporary Zope image object?
> 
> I have an external method that creates a list of
> PIL.Image.Image instances, e.g.
>    [<PIL.Image.Image instance at 0x711fc60>,
>     <PIL.Image.Image instance at 0x711fc70>
>     ]
> 
> How can I display all images in a Zope page template?
> 
> I tried
> <tal:rep tal:repeat="item">
>    <span tal:replace="item" />
>
> </tal:rep>
> 
> The <span> renders "<PIL.Image.Image instance at 0x23b97500>". How can I 
> show the image?

Call its tag method.

    <span tal:replace="structure item/tag" />

-- 

Paul Winkler
http://www.slinkp.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to