You can pass parameters to meth_1 in an image tag using the query string e.g. <img src="meth_1?firstval=<dtml-var firstval missing="1">&secondval=<dtml-var secondval missing="Test""> The values passed in this method will appear as normal in the REQUEST namespace for meth_1. The values will all be string values, but you can perform the necessary conversions from meth_1. Hope this helps, David Burton 16/05/2002 21:22:58, "Laurie Nason" <lnason@bcm.tmc.edu> wrote:
Hi all,
Here's the problem,
I want to use a python site-package called pychart to generate graphs for my laboratory.
If I provide all the parameters required internally an the External Method, I can get the graph to be produced. To generate the graph I have a DTML Method (meth_1) which calls my_graph_external_method. To use my graph all I have to do is: <img src="meth_1">.
But, what I want to do is to be able to pass in parameters to the external method, i.e. graph type, data, labels etc. so that the users can customize their graphs. However I can't pass in any parameters to meth_1.
I don't really want to make the process 2 step by creating the file with one method and then reading it with another.
Anyone any ideas?
Laurie
PS Scripts available if they will help
Laurie Nason Scientific Programmer National Center for Macromolecular Imaging Houston TX USA
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
"Into the abyss we stare, hoping that the abyss does not gaze so intently upon us"