Sorry Jim, I should have specified that this error pops up whether or
not I have it set to 'result' or 'results.'
"the prefix "py" for attribute "py:for" associated with an element
type tr is not bound "

Turbogears1.0 Python v2.5.1c
Here is what the template file looks like in my code to match the
columns in my DB.
Thanks...

<html>
<head><title>Webapptests</title></head>
<body>

<tr py:for="row in results">
<td py:content="row['pageID']">
<td py:content="row['pageName']">
<td py:content="row['url']">
</tr>
</table>

</body>
</html>

On Jul 3, 11:42 am, Jim Steil <[EMAIL PROTECTED]> wrote:
> In the sample below you'll need to change the 'result' to 'results' in
> the html portion.  That is what is being returned in the dict.
>
>     -Jim
>
> SMERSH009 wrote:
> > Hi Johnny, your code was close, but is returning an error in the .kid
> > file
> > <tr py:for="row in result">     This line returns: the prefix "py" for
> > attribute "py:for" associated with an element type tr
> > is not bound
>
> >  Alex, since having to edit these rows was going to be the next step
> > in this difficult project (I am a newbie to Python), you are going to
> > be my lifesaver if your code will work. I will keep checking the
> > thread for your guys' updates.
>
> > On Jul 3, 4:12 am, Johnny Blonde <[EMAIL PROTECTED]>
> > wrote:
>
> >> controller:
> >> -------------------------------------
> >> results = TableToDisplay.select()
> >> return dict(results=results)
>
> >> template
> >> ------------------------------------------
> >> <html>
> >> <head><title>Webapptests</title></head>
> >> <body>
>
> >> <table>
> >>   <tr py:for="row in result">
> >>     <td py:content="row['name']">
> >>     <td py:content="row['url']">
> >>     <td py:content="row['id']">
> >>   </tr>
> >> </table>
>
> >> </body>
> >> </html>
> >> ---------------------------------------------
> >> doesn´t this work?


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