Ashish Bhatia schrieb:
> Hello,
> 
> I created one widget to display some text.
> 
> The problem with the widget is that it fails to show the data
> Eg :
> 
> in widget.py
> i made data=['aa','bb',cc']
> on the kid
> ${data} works fine
> but when i  write the loop using py:for i do not render.
> 
> I put this in the kid
> 
> <td py:for="d in range(10)" py:content="d"/>
> 
> but it donot displays on inscpecting element it shows "<td py:for="d
> in range(10)" py:content="d"/>"
> 
> If i try like
> <td py:for="d in range(10)" >${d}</td>
> 
> It gives error d is not defined.

Please show us the *full* template. To me it looks as if you have the 
namespace-declaration messed up - which would explain why you can use 
${...}, but not py:*

Diez

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to