I had to do a little extra to get this to work, since I needed the
'row parameter' in your example above to actually be a variable pulled
out of the database instead of a fixed numerical value.  The code
below illustrates what I had to do:

<table border="1">
  <tr><td>ID</td><td>Title</td></tr>
  <tr py:for="plot in plots">
  <?python
    i = plot.id
    j = plot.title
    link = '<a href="/plotdraw?plotType=%s">%s</a>' % (i,j)
    link = XML(link)
   ?>
  <td>${plot.id}</td><td>${link}</td></tr>
</table>

The key point is that if you are using a variable which resolves to a
string containing problematic characters like '<', you need to
explicitly tell Kid that you using xml-type characters, by use of the
XML function.

HTH,
Stewart

--~--~---------~--~----~------------~-------~--~----~
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