List Info

Thread: Problem passing parameters into a nested root.xyz path




Problem passing parameters into a nested root.xyz path
user name
2006-10-22 06:53:03
Gloria wrote:
> If I then change my FORM action to login_resp2,
> refresh, and send the exact same parameters,
> I get this:
> TypeError: index() takes exactly 3 arguments (1 given)
> 
> The correct method in the correct class is being
called,
> but the parameters from the FORM  are not being passed
> into the root.login_resp2 class. Why is this happening?

You're probably getting redirected from login_resp2 to
login_resp2/ (note trailing slash). And POST redirects
aren't supposed to re-pass parameters without asking the
user's permission. Try adding the trailing slash to the form
action. Other ways to fix it would be 1) move the
login_resp2 handler to a non-index method, 2) set
tools.trailing_slash.missing to False, 3) find a browser
that allows resubmission of params on 302/303 redirects. ;)


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
Problem passing parameters into a nested root.xyz path
user name
2006-10-22 16:52:27
Ahh..ok. The redirection from non-slash to an ending slash
was not
obvious to me at all. This makes sense.
I chose option (2) for now instead of (1), although I think
(1) is the
better way in the long run. It works well.

It's so nice to post to a developer's list and get useful,
appropriate
responses. 

Thank you once again.
Gloria


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )