[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-11 Thread Andy Freeman
The URL you supply needs to be absolute ('http://mysite.com/choose_user.html'), not relative ('choose_user.html' or '/choose_user.html'). Is the documentation wrong? From http://code.google.com/appengine/docs/python/users/functions.html dest_url can be full URL or a path relative to your

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread Nick Johnson (Google)
Hi Brian, On Wed, Jun 10, 2009 at 5:54 PM, thebrianschott schott.br...@gmail.comwrote: Can I change the Subject code so that when a user finishes signing in, the user is redirected to a different html page that is designed for the user's revised state of having signed in, or signed out?

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread Nick Johnson (Google)
Hi Brian, The URL you supply needs to be absolute (' http://mysite.com/choose_user.html'), not relative ('choose_user.html' or '/choose_user.html'). You may find the self.request.host and self.request.host_uri members helpful in constructing an absolute url from a relative one without hardcoding

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread thebrianschott
Nick, I am not getting much progress with the absolute url. When I use users.create_login_url('http://localhost:8084/choose_name.html') I still get the error message 404. My Log entry looks like the following. INFO 2009-06-10 17:53:29,764 main.py] skillName_id splash INFO 2009-06-10

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread Nick Johnson (Google)
Hi Brian, Have you defined a handler or static file directive for /choose_name.html? It looks like you haven't. Note that the parameter is a URL - not the name of a template. -Nick Johnson On Wed, Jun 10, 2009 at 7:03 PM, thebrianschott schott.br...@gmail.comwrote: Nick, I am not getting

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread Sergey Klevtsov
Most probably your handler is not for http://localhost:8084/choose_name.html, but for http://localhost:8084/choose_name instead On Jun 10, 10:03 pm, thebrianschott schott.br...@gmail.com wrote: Nick, I am not getting much progress with the absolute url. When I use

[google-appengine] Re: alternative to self.redirect(users.create_login_url(self.request.uri))

2009-06-10 Thread thebrianschott
Sergey and Nick, You are both correct. Thanks very much. Let me see if I can build on that. Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to