[Zope] dtml-in function using input/text value

Mark A. Robinson marcos@paladin-its.com
Mon, 20 May 2002 15:39:22 -0500


Hi all,
I swear I must be braindead. Having trouble passing the value stored in
an Input/text control to a python function used in a dtml-in statement.=20
The text box "asset_type_id" contains the value I wish to pass to the
function "f_list_get_asset_type_cfg".
The zope error is: "global name 'asset_type_id' is not defined"

Following is the code I am currently using.=20

<input name=3D"asset_type_id" type=3D"hidden" value=3D"1">
<p>
Asset Column Associations for the Selected Type of Asset<br>
<TABLE border=3D1 id=3DTable1 name=3D"Table1">
<dtml-in prefix=3D"asset_type_cols"
expr=3D"f_list_get_asset_type_cfg(asset_type_id)">
  <TR>
  <TD>
  <P><dtml-var col_name></P>
  <TD>
  <P><dtml-var column_name></P>
</dtml-in>
</TABLE>
</p>

Thanks!