rmyers / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Doc for webapp2_extras.routes.RedirectRoute has an error #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Doc for RedirectRoute redirect_to argument gives the example:

    ... These two are equivalent:
    route = Route('/foo', handler=webapp2.RedirectHandler,
                  defaults={'_uri': '/bar'})
    route = Route('/foo', redirect_to='/bar')

the second is in error, should be:
    route = RedirectRoute('/foo', redirect_to='/bar')

Original issue reported on code.google.com by b...@bdlow.net on 1 Sep 2014 at 11:34