Daniel,

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

Thanks
Rohan

On Feb 15, 3:34 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> > I am saving some values to a MYSQL database which are not being
> > reflected on the screen. The values are being
> > saved correctly but not being refreshed on my page.
>
> > When I stop the server and make another connection and go to the same
> > page the changes
> > can be seen, but when a new entry is saved the screen is not refreshed
> > properly.
>
> And what mechanism(s) are you employing to make the change appear on
> your screen?
> Ajax? Http refresh?
>
> If you provide more details with maybe simplified code snippets the
> probability that someone can help you will be greatly increased.
>
> Cheers,
> Daniel
--~--~---------~--~----~------------~-------~--~----~
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