Hi,

Actually it works when directely invoked from the browser address bar,
but it doesn't work when invoked from javascript in an asynchronous
mode.

Still investigating ...

-Yassine

On Dec 31 2009, 12:21 am, Pancho <yfa...@gmail.com> wrote:
> That's it. I just added a 'return' statement, and still the same
> behavior.
> Cheers.
>
> On Dec 30, 10:52 pm, Andy Freeman <ana...@earthlink.net> wrote:
>
> > Is that the whole post method?
>
> > I ask because calling self.redirect does not cause the post method to
> > terminate.  If there's code afterwards, it can "undo" the redirect.
>
> > On Dec 29, 3:02 pm,Pancho<yfa...@gmail.com> wrote:
>
> > > 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 <wesc+...@google.com> 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<yfa...@gmail.com> 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 :: wesc+...@google.com
> > > > developer relations :: google app engine- Hide quoted text -
>
> > > - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to