> I am doing the following in the controller method:
>
> @expose(template='deceptive.templates.listing')
> def displayresults(self):
> c=FileStatus.select()
> return dict(listfiles=c)
>
> In my listing.kid template I am doing the following
>
> <h1>Deceptive Analysis Results</h1>
>
> <table border="1">
> <tr>
> <th>User IP</th>
> <th>FileName</th>
> <th>Deceptive?</th>
> <th>Deceptive Cue</th>
> <th>Too High?</th>
> <th>User Agrees?</th>
> </tr>
>
> <tr py:for="file in listfiles">
> <td>${file.UserIP}</td>
> <td>${file.FileName}</td>
> <td>${file.Deceptive_Indicator}</td>
> <td>${file.Deceptive_Cue}</td>
> <td>${file.Deceptive_Level}</td>
> <td>${file.User_Confirmation}</td>
> </tr>
>
> </table>
>
> I am using Http:refresh. When I restart the server I see the proper
> values on my screen

I guess you also have another controller which updates your database.
What happens if you call your displayresult controller, go to the
other controller which updates and then go back to displayresult (all
of this from your browser)? I mean don't restart the server just
browse from /displayresult to /edit then back to /displayresult, what
happens?

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