Hi Wesley,

Indeed the extra ")" is a typo in the message but the code does
compile.
I am calling it using POST and the le log info "Redirecting to
google.com" is actually displayed but the redirection doesn't happen.

Any idea?

Thanks,

Pancho

On Dec 29, 2:04 am, Wesley Chun <[email protected]> wrote:
> greetings!
>
> how are you calling into your code? based on the code you posted
> below, it does not look like it will even compile. (there is an extra
> ")" at the end of your class definition.)
>
> also, you have created a post() method. did you invoke your
> application using POST (or GET)? if the latter, then you need to put
> your code into a get() method.
>
> hope this helps!
> -wesley
>
>
>
> On Wed, Dec 23, 2009 at 3:07 PM, Pancho <[email protected]> wrote:
> > Hi Everybody!
>
> > You may have come across this issue that I have with redirecting from
> > within a post:
>
> > class Handler(webapp.RequestHandler):)
>
> >  def post(self):
> >    logging.info('Redirecting to google.com')
> >    self.redirect('http://www.google.com')
>
> > For a strange reason this doesn't work. The message is correctly
> > logged but there no redirection.
>
> > Please help!
>
> > Cheers.
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>    http://corepython.com
>
> wesley.j.chun :: [email protected]
> developer relations :: google app engine

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.


Reply via email to