In my project, most action is performed with a POST action in the
index class:
class index:
def GET(self):
form = myform()
return render.myform(form)
def POST(self):
form = myform()
session.count += 1
a = [[],[]]
...
pages = dict([('val1',a[0]),('val2',a[1])])
return render.index(pages)
The script is working fine. One thing however, when the results are
shown in the internet browser and I refresh the webbrowser page, the
POST action is running again and I have to wait until the new results
are in the browser. I don't want this. I do not want to run the POST
action again when I hit the webbrowser refresh button. I only want to
run the POST action again when I turn back to the form page. I hope I
make myself clear. What will be the solution for my problem ?
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.