[Zope] Howto redefine a variable value

Felipe Alvarez Harnecker felipe.alvarez@qlsoft.cl
Wed, 1 Dec 1999 09:38:16 -0300 (CLST)


Oleg Broytmann writes:
 > On Wed, 1 Dec 1999, Felipe Alvarez Harnecker wrote:
 > > Inside a DTML document i want to do this
 > > $var = 'bar' if $var eq 'foo';
 > 
 > <!--#if "var == 'foo'"-->
 > <!--#call "REQUEST.set('var', 'bar')"-->
 > <!--#/if -->
 > 
 > Oleg.
 > ---- 
 >     Oleg Broytmann      Foundation for Effective Policies      phd@phd.russ.ru
 >            Programmers don't die, they just GOSUB without RETURN.
 > 
 > 

Maybe that works for CGI style variables, but i need to change values
from a ZSql object, here is a fragment of the DTML document:

<dtml-in getFacturas>


<!--#call "REQUEST.set('fechaPago', 'fechaPago')"--> <!-- does not
change variable fechaPago from de getFacturas object.-->
<tr>
  <td align=right><!--#var numeroFactura--></td><td align=right><!--#var rut--></td>
  <td><!--#var fechaEmision--></td><td><!--#var fechaPago--></td>
  <td><!--#var estado--></td><td><!--#var TotalNeto--></td>
  <td><!--#var TotalIVA--></td><td><!--#var TotalFactura--></td>
</tr>

</dtml-in>
</table>

-- 
______________________________________________________

Felipe Alvarez Harnecker.  QlSoftware.
		
Tel. 09.874.60.17  e-mail: felipe.alvarez@qlsoft.cl

Potenciado por Ql/Linux  http://www.qlsoft.cl
______________________________________________________