Displaying PIL Images in Zope Templates
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? Thanks in advance Nico
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
participants (2)
-
Nico Grubert -
Paul Winkler