rendered paste body<!-----------------------------------------------------------------------------------
Reid, the problem is, how to generate the first parameter of the 'test( ????,'field error','field')'.
-->
<div metal:define-macro="updateAddressInfo">
<fieldset>
<legend tal:content="python: aname + ' Address Information'"
i18n:translate="legend_update_address_information">
</legend>
<table border=0>
<tr><td>
<!-- Payee Address Line 1
-->
<div class="field"
tal:define="error_address1 python: 'errors/'+aname+'_address1|nothing';"
tal:attributes="class python: test( 'error_'+aname+'address1',
'field error',
'field')">
<label tal:attributes="i18n:translate python: 'label_'+aname+'_address1'"
title="First line of address.">Address Line #1</label>
<span class="fieldRequired" title="Required">(Required)</span>
<!--
<div class="formHelp"
i18n:translate= python: '"label_'+aname+'_address1_help"'>
First line of address.
</div>
-->
<div tal:condition="python: 'error_'+aname+'_address1'">
<tal:block i18n:translate=""
content="python: 'error_'+aname+'_address1'">Error
</tal:block>
</div>
<input type="text" name="python: aname+'_address1'"
tal:attributes="tabindex tabindex/next;
value request/python: aname+'_address1'|address1;"/>
</div>
</td></tr>
<tr><td>