30 May
2008
30 May
'08
7:30 a.m.
--On 30. Mai 2008 12:38:21 +0530 Andyy <ggirotra@gmail.com> wrote:
i am preparing graphs(MatPlotLib) related files using external methods., when i test them on zope they display very well there.
But when i call these external methods using tal as:
<Img tal:attributes="src python: context.IterationBar(context) "/> where IterationBar is my external method that displays a BarChart.
Or using
<img src="/Agile/image.gif" tal:attributes="src context.IteartionBar(context)"/>
1) the thing you're calling must return an *URL* not the image data itself...think about how the <img> in HTML works 2) The script called through the given url must return the image data _and_ it must set the proper http headers content-type, and content-length -aj