Hi,
I am trying to get value from dictionary (i.e. errors instance) by a
key in my template. A key is dynamic value based on loop.index value.
But can not get it worked. Any thoughts?
$for i in xrange(20):
<tr>
<td>$(loop.index).</td>
<td><input type="text" name="player$(loop.index)">
$:errors['player$(loop.index)']</td>
<td><input type="text" name="points$(loop.index)">
$:errors['points$(loop.index)']</td>
</tr>
Thanks,
Sergei.
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.