[Zope] Displaying PIL Images in Zope Templates
Paul Winkler
slinkp at gmail.com
Fri Sep 19 10:50:56 EDT 2008
On Thu, Sep 18, 2008 at 08:22:37AM +0200, Nico Grubert wrote:
> > > 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" />
>
>
> Hi Paul,
>
> how is the susi going? ;-)
Ah, I sold mine years ago. Nowadays I mostly just play bass. And you? :)
> I tried <span tal:replace="structure item/tag" /> but I get the
> following error:
> -----------------------------------------------------------------------
> Exception Type TraversalError
> Exception Value (<PIL.Image.Image instance at 0x18e84ad0>, 'tag')
Whoops, sorry, I didn't realize these were PIL images, I thought they
were OFS.Image or some such. But I see you already got the solution.
- PW
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list