> I am not sure I understand your question.  You can do this select in
> your
> controller, or in another module, and just pass the "results" into your
> template.  Once they are in your template, you can loop through them and
> display the results however you like:
>
>      <table>
>        <tr py:for="result in results">
>          <td>${result[1]}</td> <!-- subdivision name -->
>          <td>${result[4]}</td> <!-- division name -->
>        </tr>
>      </table>
>
> I hope this helps.

If I pass the results object to my template then the paginate fails:

  File "/usr/lib/python2.4/site-packages/TurboGears-1.0.2.2-py2.4.egg/
turbogears/paginate.py", line 89, in decorated
    raise 'Variable is not a list or SelectResults'
Variable is not a list or SelectResults

otherwise I would be able to use that results as is.

Thanks for your help so far.  It's been great. =D

Mel


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