[Zope] Displaying PIL Images in Zope Templates
Nico Grubert
nicogrubert at gmail.com
Thu Sep 18 04:01:51 EDT 2008
> Instead of generating the image on the call to your ZPT you form an <img
> src="/some/url/that/makes/my/image?foo=bar&baz=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.
In the page template I have to use:
<img tal:attributes="src
string:${container/absolute_url}/createThumbnail?imagepath=${imgpath}"/>
Thanks for pointing me in the right direction.
Regards
Nico
More information about the Zope
mailing list