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.
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? ;-)
I tried span tal:replace=structure item/tag / but I get the
following error:
+---[ Nico Grubert ]--
|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? ;-)
|
| I tried span
You can't do this
What you need to do is associate the image with a URL so it gets
generated when the browser processes the img tag.. UNLESS it's very small
in which case you can use the src=... attribute to contain the data.
So a PIL image should be returned by a script or external
Instead of generating the image on the call to your ZPT you form an img
src=/some/url/that/makes/my/image?foo=barbaz=bat e.g. in order to
generate the right image.
Got it. The magic is not to call the external method by
container.createThumbnail() but use absolute URL to the external method.
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
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.