[Zope] passing parameter problem

Alexis Roda alexis.roda at urv.es
Wed Sep 15 05:48:15 EDT 2004


Laura McCord wrote:
> It seems like I have done this hundreds of times and it worked. Can some
> point out what I am doing wrong?
> 
> <div tal:define="actStatus result/Active_Inactive;
>                  colorStat python:here.statChk(actStatus)">

That seems correct to me. actStatus can be None?

> I also tried this:
>  
>     <div tal:define="colorStat python:here.statChk('${actStatus}')">

IIRC you should user statChk(string('${actStatus}')) or 
statChk(path('actStatus'))


HTH
-- 
                                    ////
                                   (@ @)
----------------------------oOO----(_)----OOo--------------------------
<>               Ojo por ojo y el mundo acabara ciego
/\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain)
-----------------------------------------------------------------------



More information about the Zope mailing list