Differences From Artifact [4537bde179]:
- File gluon/http.py — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 3670) [annotate] [blame] [check-ins using]
To Artifact [d702443dbf]:
- File gluon/http.py — part of check-in [5e6e1e2c0a] at 2011-11-20 05:28:20 on branch feature/web2py_auth — Upgraded to web2py 1.99.2 (user: spiffy, size: 3708) [annotate] [blame] [check-ins using] [more...]
︙ | |||
116 117 118 119 120 121 122 123 124 125 126 127 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | + + + + | def __str__(self): "stringify me" return self.message def redirect(location, how=303): if not location: return location = location.replace('\r', '%0D').replace('\n', '%0A') raise HTTP(how, 'You are being redirected <a href="%s">here</a>' % location, Location=location) |