

On Monday, November 18, 2002, at 01:35 PM, Jorg E. Rødsjø wrote:


<excerpt><<dtml-in expr="makePhoneList(searchString='foo', '<<dtml-var
sortBy1>', '<<dtml-var sortBy2>')">

</excerpt><fontfamily><param>Helvetica</param>

..the above can't work because you can't have DTML within DTML.


You need to get the difference between DTML-space and python-space.
They are kind of separate but can be made to know about each other
quite easily like this...


<<!-- this lets python know about the variables -->

<<dtml-let s1=sortBy1 s2=sortBy2>    					

	<<!-- note I've named the params (seems to help) -->

	<<dtml-in "makePhoneList(searchString=searchString, sortBy1=s1,
sortBy2=s2 )"> 		<<dtml-var firstName><<br/>

</fontfamily>	<</dtml-in><fontfamily><param>Helvetica</param>

<</dtml-let>


cheers


tom



--

tom smith

http://www.othermedia.com/blog/

0207 089 5959

3rd Floor, The Pavilion, Newham's Row, London SE1 3UZ</fontfamily>

