--On 30. Mai 2008 12:38:21 +0530 Andyy <[EMAIL PROTECTED]> 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


Attachment: pgpEtCoGjAusC.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to