Michele Cella wrote:
>> In the template:
>>
>>      <span py:for="risk in risks">
>>          ${risk_widget.update_data(risk=risk).display()}
>>      </span>
>
> Yep, that's perfect... ;-)

Okay, this is now done in revision 90!  Fast Track should be a "good  
citizen" now when it comes to widget usage, and there is no more than  
one instance of each widget in the entire application :)  However, I  
had to do this instead of what I mentioned above:

     <span py:for="risk in risks">
       ${risk_widget.display(risk=risk)}
     </span>

... the update_data thing didn't seem to work for me, as it doesn't  
return the instance, so I would have to do some hackery to get it to  
work in a loop.  I actually like the variant I went with better  
anyway.  Is this acceptable use?

I had forgotten a template in the previous revision as well, so if  
you are using Fast Track, you might want to update your tree.

--
Jonathan LaCour
http://cleverdevil.org



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to