Hi Anand, indeed the search results are always the same output Anand Chitipothu schreef: > 2011/8/25 digistam <[email protected]>: > > 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 > > Are the serarch results look exactly the same on all the pages? How > different are page1 and page2? Can you handle both of them in a single > GET function? > > Anand
-- 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.
