In my web.py project I have about 5 pages. All pages contain a
standard search form. At the moment, each of the 5 pages has it's own
class with always the same POST action:

def POST(self):
form = myform()
if not form.validates():
session.pages = 'none'
return render.index(session.pages,form)
else:
index().POST()

return render.index(session.pages,form)

As you can see, the search form always does the same trick (just doing
what's in the INDEX POST action). I'm sure this is not the best
solution. I really would like to display the results on the index page
and at the moment it's not. Now it's working like this:

http://localhost:8080/page1 -> search form action -> results are
displayed on http://localhost:8080/page1

http://localhost:8080/page2 -> search form action -> results are
displayed on http://localhost:8080/page2

etc.

This is not what I want, I want to have it like this:

http://localhost:8080/page1 -> search form action -> results are
displayed on http://localhost:8080/index

http://localhost:8080/page2 -> search form action -> results are
displayed on http://localhost:8080/index

etc.

I hope that I can explain this problem well enough. What's the
solution to this ?

Thanks in advance,

Mark

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

Reply via email to