Couple of things I'd suggest here:

1. Don't use a list comprehension in this case.  It's not necessary.
Pictures.select already returns an iterable SQLResults collection; you
can iterate over that in your Kid template and save some time.  Just
do:

pics = Pictures.select(orderBy='shortname')

BTW, orderBy takes a string, not a database column.

2. As for the Kid template, your basic idea will be:

<ul py:if="pics">
 <li py:for="pic in pics">
  <img src="${pic.src}" alt="${pic.alt}" height="${pic.height}"
width="${pic.width}" />
 </li>
</ul>

The rest is up to you and your command of HTML and CSS.

Good luck,
David


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