On Monday 17 June 2002 01:07 am, Dianne Van Dulken wrote:
Hi,
I'm finding whenever I call a python script from within a zope page (as opposed to submitting a form to a script), it assumes that every parameter is a string. This isn't always the case, in fact, it is rarely the case. I was wondering if there was anyway that I could force it to know what type it was. I am particularly interested in passing in lists.
The way I call it at the moment is like this:
<dtml-var expr="script1(var1='blah', var2=['a', 'b', 'c'])"> etc.
on zope2.5.1, i do get the necessary objects. e.g dtml-method <dtml-var standard_html_header> <h2><dtml-var title_or_id> <dtml-var document_title></h2> <p><dtml-var expr="te(a='string',b=['1','a'])"> </p> <dtml-var standard_html_footer> script python #parameters a, b return a,b gives me ('string',['1','a']) which is right hth -- http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org If you SMELLLL...